feat(reuse): reuse compliance #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2023 Christina Sørensen | |
# SPDX-FileContributor: Christina Sørensen | |
# | |
# SPDX-License-Identifier: AGPL-3.0-only | |
name: Unit tests | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '.github/workflows/*' | |
- 'src/**' | |
- 'Cargo.*' | |
- build.rs | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '.github/workflows/*' | |
- 'src/**' | |
- 'Cargo.*' | |
- build.rs | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
unit-tests: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.rust == 'nightly' }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
rust: [1.71.0, stable, beta, nightly] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
- name: Install cargo-hack | |
run: cargo install [email protected] | |
- name: Run unit tests | |
run: cargo hack test --feature-powerset |