mirror of
https://github.com/fluencelabs/aquavm
synced 2025-03-28 10:21:04 +00:00
56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
name: "test"
|
|
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- "**.md"
|
|
- ".github/**"
|
|
- "!.github/workflows/run-tests.yml"
|
|
- "!.github/workflows/tests.yml"
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
aquavm:
|
|
uses: ./.github/workflows/tests.yml
|
|
with:
|
|
ref: ${{ github.ref }}
|
|
|
|
lints:
|
|
runs-on: builder
|
|
|
|
env:
|
|
RUSTFLAGS: "-D warnings"
|
|
RUSTC_WRAPPER: "sccache"
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Rust toolchain
|
|
uses: dsherret/rust-toolchain-file@v1
|
|
|
|
- name: Setup cache
|
|
uses: Swatinem/rust-cache@v2
|
|
with:
|
|
cache-directories: ~/.cache/sccache
|
|
shared-key: aquavm
|
|
save-if: false
|
|
|
|
- name: Setup sccache
|
|
uses: mozilla-actions/sccache-action@v0.0.3
|
|
|
|
- name: Run cargo check
|
|
run: cargo check
|
|
|
|
- name: Run cargo clippy
|
|
uses: giraffate/clippy-action@v1
|
|
with:
|
|
reporter: github-pr-review
|
|
fail_on_error: true
|
|
|
|
- name: Run cargo fmt
|
|
uses: actions-rust-lang/rustfmt@v1
|