mirror of
https://github.com/zhaofengli/attic.git
synced 2024-12-14 11:57:30 +00:00
.github: Factor unit tests out to justfile
This commit is contained in:
parent
eeb4275172
commit
a9cafe8298
2 changed files with 11 additions and 3 deletions
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -51,10 +51,9 @@ jobs:
|
|||
system=$(nix-instantiate --eval -E 'builtins.currentSystem')
|
||||
echo system=$system >>$GITHUB_ENV
|
||||
|
||||
- name: Build and run tests
|
||||
- name: Run unit tests
|
||||
run: |
|
||||
tests=$(nix build .#internalMatrix."$system".\"${{ matrix.nix }}\".attic-tests --no-link --print-out-paths -L)
|
||||
find "$tests/bin" -exec {} \;
|
||||
.ci/run just ci-unit-tests ${{ matrix.nix }}
|
||||
|
||||
- name: Build WebAssembly crates
|
||||
if: runner.os == 'Linux'
|
||||
|
|
9
justfile
9
justfile
|
@ -32,3 +32,12 @@ ci-build-wasm:
|
|||
pushd token
|
||||
cargo build --target wasm32-unknown-unknown
|
||||
popd
|
||||
|
||||
# (CI) Run unit tests
|
||||
ci-unit-tests matrix:
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
|
||||
system=$(nix-instantiate --eval -E 'builtins.currentSystem')
|
||||
tests=$(nix build .#internalMatrix."$system".\"{{ matrix }}\".attic-tests --no-link --print-out-paths -L)
|
||||
find "$tests/bin" -exec {} \;
|
||||
|
|
Loading…
Reference in a new issue