Skip to content

Commit 9400efc

Browse files
naomijublennyburdettedylan-apollo
authored
Add CMD Regressions tests (#2877)
<!-- First, 🌠 thank you 🌠 for taking the time to consider a contribution to Apollo! Here are some important details to follow: * ⏰ Your time is important To save your precious time, if the contribution you are making will take more than an hour, please make sure it has been discussed in an issue first. This is especially true for feature requests! * 💡 Features Feature requests can be created and discussed within a GitHub Issue. Be sure to search for existing feature requests (and related issues!) prior to opening a new request. If an existing issue covers the need, please upvote that issue by using the 👍 emote, rather than opening a new issue. * 🕷 Bug fixes These can be created and discussed in this repository. When fixing a bug, please _try_ to add a test which verifies the fix. If you cannot, you should still submit the PR but we may still ask you (and help you!) to create a test. * 📖 Contribution guidelines Follow https://github.com/apollographql/rover/blob/HEAD/CONTRIBUTING.md when submitting a pull request. Make sure existing tests still pass, and add tests for all new behavior. * ✏️ Explain your pull request Describe the big picture of your changes here to communicate to what your pull request is meant to accomplish. Provide 🔗 links 🔗 to associated issues! We hope you will find this to be a positive experience! Open source contribution can be intimidating and we hope to alleviate that pain as much as possible. Without following these guidelines, you may be missing context that can help you succeed with your contribution, which is why we encourage discussion first. Ultimately, there is no guarantee that we will be able to merge your pull-request, but by following these guidelines we can try to avoid disappointment. --> --------- Co-authored-by: Lenny Burdette <[email protected]> Co-authored-by: Dylan Anthony <[email protected]>
1 parent d9e32c5 commit 9400efc

File tree

16 files changed

+759
-13
lines changed

16 files changed

+759
-13
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
merge_group:
7+
8+
jobs:
9+
introspection_e2e:
10+
name: introspection E2E
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
14+
- name: Install stable@stable toolchain
15+
uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
16+
- name: Install rover
17+
run: cargo build -r --bin rover
18+
- name: Check rover
19+
run: |
20+
export PATH="$PATH:./target/release"
21+
rover -V
22+
- name: Build Services
23+
run: cargo build -r -p regressions --example is_deprecated
24+
- name: Run Tests
25+
run: |
26+
./target/release/examples/is_deprecated &
27+
echo $! > is_deprecated_service.pid
28+
cargo build
29+
cargo test --locked --package regressions --test cli_tests -- introspection_cli_tests
30+
kill $(cat is_deprecated_service.pid)
31+
32+
connectors_e2e:
33+
name: connectors E2E
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
37+
- name: Install stable@stable toolchain
38+
uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
39+
- name: Install rover
40+
run: cargo build -r --bin rover
41+
- name: Check rover
42+
run: |
43+
export PATH="$PATH:./target/release"
44+
rover -V
45+
- name: Run Tests
46+
run: |
47+
cargo build
48+
cargo test --locked --package regressions --test cli_tests -- connectors_cli_tests
49+
50+

0 commit comments

Comments
 (0)