Skip to content

Add toolchain for stability on CI #75

Add toolchain for stability on CI

Add toolchain for stability on CI #75

Workflow file for this run

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
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'
- name: Run CLI tests
working-directory: ./checked_cli
run: |
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