Skip to content

chore: update deprecated actions #127

chore: update deprecated actions

chore: update deprecated actions #127

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
jobs:
filter:
runs-on: ubuntu-latest
outputs:
filter: ${{ steps.filter.outputs.backend == 'true' || steps.filter.outputs.workflows == 'true' }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: .github/filters.yml
test:
name: Run built-in tests
needs: filter
if: ${{ needs.filter.outputs.filter == 'true' }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-12-large]
node-version: ['12.x']
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
./target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install dfx
uses: dfinity/setup-dfx@main
with:
dfx-version: "0.9.2"
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Run tests
run: |
dfx start --background
dfx canister create wallet
dfx build wallet
cargo test --verbose --no-fail-fast --workspace --all-targets --locked -- --nocapture
env:
RUST_BACKTRACE: 1
aggregate:
name: test:required
needs: [test, filter]
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- name: Check test result
if: ${{ needs.test.result != 'success' && needs.filter.outputs.filter == 'true' }}
run: exit 1