Skip to content

WIP: proxy-wasm property node #67

WIP: proxy-wasm property node

WIP: proxy-wasm property node #67

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
branches:
- '*'
workflow_call:
defaults:
run:
shell: bash
# cancel previous runs if new commits are pushed to the PR, but run for each commit on master
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
# https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
test:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: cargo test
# for some reason cargo won't run unit tests against the default wasm32-wasip1 target
run: cargo test --target x86_64-unknown-linux-gnu
check:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- uses: actions-rs/cargo@v1
with:
command: check
rustfmt:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --no-deps -- -D warnings