Skip to content

Commit

Permalink
Run tests in CI. (#148)
Browse files Browse the repository at this point in the history
It doesn't matter too much when I'm the only one contributing code, but
that's quickly changing!
  • Loading branch information
LukeMathWalker committed Jan 5, 2024
1 parent c9e1478 commit 17bded5
Show file tree
Hide file tree
Showing 18 changed files with 230 additions and 124 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,42 @@ jobs:
name: tutorial_generator
path: doc_examples/tutorial_generator/target/debug/tutorial_generator

tests:
runs-on: ubuntu-latest
needs:
- build_pavex_cli
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust stable toolchain
uses: actions-rust-lang/[email protected]
with:
rustflags: ""
- name: Install Rust nightly toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
components: rust-docs-json
rustflags: ""
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
with:
workspaces: "./libs -> ./target"
key: "tests"
- name: Download pavex CLI artifact
uses: actions/download-artifact@v4
with:
name: pavex_cli
path: ~/.cargo/bin
- name: Mark as executable
run: chmod +x ~/.cargo/bin/pavex
- name: Run tests
run: |
cd libs
cargo test --no-run
cargo test --workspace --exclude="pavex_cli"
PAVEX_TEST_CLI_PATH="pavex" cargo test --package pavex_cli
is_up_to_date:
runs-on: ubuntu-latest
needs:
Expand Down
21 changes: 11 additions & 10 deletions doc_examples/guide/dependency_injection/cookbook/project/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 11 additions & 10 deletions doc_examples/guide/request_data/buffered_body/project/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 11 additions & 10 deletions doc_examples/guide/request_data/json/project/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 11 additions & 10 deletions doc_examples/guide/request_data/path/project/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 11 additions & 10 deletions doc_examples/guide/request_data/query/project/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 17bded5

Please sign in to comment.