Skip to content

Opensource changes and adaptations #4

Opensource changes and adaptations

Opensource changes and adaptations #4

Workflow file for this run

name: Test Suite
on:
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.event.merge_group.head_sha }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout repository
with:
fetch-depth: 0
- uses: actions/cache@v3
name: Setup cache registry
with:
path: ~/.cargo/registry
key: '${{ runner.os }}-cargo-registry-${{ hashFiles(''**/Cargo.lock'') }}'
- uses: actions/cache@v3
name: Setup cache index
with:
path: ~/.cargo/git
key: '${{ runner.os }}-cargo-index-${{ hashFiles(''**/Cargo.lock'') }}'
- uses: actions/cache@v3
name: Setup cache build target
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
name: Setup rust toolchain
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
name: Run cargo check
with:
command: check
- uses: actions-rs/cargo@v1
name: Run cargo clippy
with:
command: clippy
- uses: actions-rs/cargo@v1
name: Run cargo test
with:
command: test