on: pull_request: push: branches: - main name: Tests jobs: test: name: Test runs-on: ${{ matrix.job.os }} strategy: matrix: rust: [stable] job: - os: macos-latest - os: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true - uses: Swatinem/rust-cache@v2 - uses: actions-rs/cargo@v1 with: command: test - name: Cargo build uses: actions-rs/cargo@v1 with: command: build toolchain: stable args: --release - name: Running bats tests shell: bash run: | ./test-bats/run-tests.sh