diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-12-01 17:18:33 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-01 17:18:33 -0600 |
| commit | ce1656e3768af75105ecf5b9f3d57be98453dd32 (patch) | |
| tree | ecb4319c1d612a96f26de621c897b0430b1632b1 /.github/workflows/ci.yml | |
| parent | 0110c630aed4b1800a94c22f74a2403df6f30295 (diff) | |
| download | azalea-drasl-ce1656e3768af75105ecf5b9f3d57be98453dd32.tar.xz | |
Run `cargo test` in GitHub Actions (#288)
* run tests in github actions ci
* maybe fix wrong syntax
* install clippy
* disable incremental compilation in ci
* use Swatinem/rust-cache instead of actions/cache
* don't run tests twice redundantly
* formatting in ci.yml
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..fa1cceb5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +on: + push: + pull_request: + types: [opened, reopened] + +env: + CARGO_INCREMENTAL: 0 # required so ci doesn't run out of space + CARGO_TERM_COLOR: always + +name: Cargo clippy & test +jobs: + clippy_and_test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Nightly + run: rustup update nightly && rustup default nightly && rustup component add clippy + + - name: Cache dependencies + uses: Swatinem/rust-cache@v2 + + - name: Clippy + run: cargo clippy --all-features + + - name: Test + run: cargo test |
