Merge pull request #591 from hauntsaninja/patch-1 #441
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
name: Rust - test | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
paths: | |
- '.github/workflows/**' | |
- 'assets/**' | |
- 'rust/**' | |
- 'tests_data/**' | |
permissions: | |
contents: read | |
jobs: | |
changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # pin@v4 | |
with: | |
fetch-depth: 0 | |
- run: ./changelog.sh | |
working-directory: rust | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: [stable, nightly] | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # pin@v4 | |
- run: rustup default ${{ matrix.toolchain }} | |
- run: rustup component add rustfmt clippy | |
- run: ./test.sh | |
working-directory: rust | |
run: | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
matrix: | |
os: [ubuntu, macos, windows] | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # pin@v4 | |
- run: cargo build --release | |
working-directory: rust/cli | |
- run: rust/target/release/magika -r tests_data/basic |