Update to Holochain 0.3.4 #98
Workflow file for this run
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 ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install nix | |
uses: cachix/install-nix-action@v27 | |
with: | |
install_url: https://releases.nixos.org/nix/nix-2.24.10/install | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: esl-checked | |
extraPullNames: holochain-ci | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
- name: Install NPM dependencies | |
run: | | |
nix develop --command npm ci | |
- name: Run Rust tests | |
run: | | |
nix develop --command npm run test:unit | |
- name: Run Tryorama tests | |
run: | | |
nix develop --command npm run test:integration | |
- name: Run CLI tests | |
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 }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.21.10' | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run CLI tests | |
run: | | |
cargo install [email protected] | |
cargo build --release --target wasm32-unknown-unknown | |
hc app pack workdir --recursive | |
# Tests are independent but sweettest is so resource hungry that they run slower in parallel. | |
cd ./checked_cli | |
cargo test --release -- --test-threads=1 |