summaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-06-16 01:07:04 +0200
committerpml68 <contact@pml68.dev>2025-06-16 01:07:04 +0200
commit7398f64d515ceec4789deacde2e2ecff5175d8bc (patch)
treed48c0b636c29b3c628d492fb88743519edfddd97 /.github/workflows/test.yml
parentci: test build on MSRV, build with `release` profile (diff)
downloadiced-builder-7398f64d515ceec4789deacde2e2ecff5175d8bc.tar.gz
ci: separate `Lint` and `Test` workflows
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..89cabd3
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,26 @@
+name: Test
+on: [push, pull_request]
+jobs:
+ all:
+ runs-on: ubuntu-latest
+ env:
+ RUSTFLAGS: --deny warnings
+ steps:
+ - uses: hecrj/setup-rust-action@v2
+ - uses: actions/checkout@master
+ - name: Install dependencies
+ run: |
+ export DEBIAN_FRONTED=noninteractive
+ sudo apt-get -qq update
+ sudo apt-get install -y libxkbcommon-dev clang mold
+ - uses: actions/cache@v4
+ with:
+ path: |
+ ~/.cargo/bin/
+ ~/.cargo/registry/index/
+ ~/.cargo/registry/cache/
+ ~/.cargo/git/db/
+ target/
+ key: ${{ runner.os }}-ci-${{ hashFiles('**/Cargo.lock') }}
+ - name: Run tests
+ run: cargo test --verbose --workspace -- --ignored