Fix test build #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test" | |
on: | |
push: | |
branches: [ main, develop ] | |
pull_request: | |
branches: [ main, develop ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install nix | |
uses: cachix/install-nix-action@v26 | |
- uses: cachix/cachix-action@v14 | |
with: | |
name: esl-checked | |
extraPullNames: holochain-ci | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
- name: Install NPM dependencies | |
run: | | |
nix develop --command npm i | |
- name: Run Rust tests | |
if: false # Uses an unreasonable amount of CI time | |
run: | | |
nix develop --command npm run test:unit | |
- name: Run Tryorama tests | |
run: | | |
nix develop --command npm run test:integration | |
- name: Run CLI tests | |
if: false # Uses an unreasonable amount of CI time | |
run: | | |
nix develop --command npm run test:cli | |
cli-test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
if: false # Uses an unreasonable amount of CI time | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run CLI tests | |
working-directory: ./checked_cli | |
run: | | |
rustup target add wasm32-unknown-unknown | |
cargo install [email protected] | |
npm i | |
npm run build:happ | |
# Tests are independent but sweettest is so resource hungry that they run slower in parallel. | |
cargo test -- --test-threads=1 |