Skip to content

chore(deps): lock file maintenance #362

chore(deps): lock file maintenance

chore(deps): lock file maintenance #362

Workflow file for this run

---
name: Test
permissions:
contents: read
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
- ready_for_review
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
RUST_BACKTRACE: '1'
FORCE_COLOR: '1'
CARGO_TERM_COLOR: always
jobs:
complete:
name: Test completion check
if: always()
runs-on: ubuntu-latest
needs:
- format
- lint
- test
steps:
- name: Failed
run: exit 1
if: |
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
format:
name: Format
if: >
github.event_name == 'push' ||
github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0
with:
components: rustfmt
- name: Check formatting
run: cargo fmt --check
lint:
name: Lint
if: >
github.event_name == 'push' ||
github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0
with:
components: clippy
- name: Run Clippy
run: cargo clippy -- -D warnings
test:
name: Test (${{ matrix.os }})
if: >
github.event_name == 'push' ||
github.event.pull_request.draft == false
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0
- uses: taiki-e/install-action@43aecc8d72668fbcfe75c31400bc4f890f1c5853 # v2.83.2
with:
tool: cargo-nextest
- name: Run tests
run: cargo nextest run