Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

fix(ci): remove lib target from clippy for now #6

fix(ci): remove lib target from clippy for now

fix(ci): remove lib target from clippy for now #6

Workflow file for this run

# Runs unit tests.
name: unit
on:
pull_request:
merge_group:
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: test / ${{ matrix.network }} (${{ matrix.partition }}/2)

Check failure on line 20 in .github/workflows/unit.yml

View workflow run for this annotation

GitHub Actions / unit

Invalid workflow file

The workflow is not valid. .github/workflows/unit.yml (Line: 20, Col: 5): Required property is missing: runs-on .github/workflows/unit.yml (Line: 40, Col: 5): Required property is missing: runs-on
env:
RUST_BACKTRACE: 1
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- uses: taiki-e/install-action@nextest
- name: Run tests
run: |
cargo nextest run \
--locked \
--workspace \
--partition hash:${{ matrix.partition }}/2 \
-E "kind(lib) | kind(bin) | kind(proc-macro)"
doc:
name: doc tests (${{ matrix.network }})
env:
RUST_BACKTRACE: 1
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run doctests
run: cargo test --doc --workspace
unit-success:
name: unit success
runs-on: ubuntu-latest
if: always()
needs: [test, state, doc]
timeout-minutes: 30
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}