matchmaker/.forgejo/workflows/test.yml
2025-03-11 18:23:48 -07:00

28 lines
778 B
YAML

name: "Test the project"
jobs:
test-library:
runs-on: ubuntu-latest
strategy:
matrix:
BUILD_TARGET: [release]
outputs:
release_built: ${{ steps.set-output.outputs.release_built }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build binaries in "${{ matrix.BUILD_TARGET }}" mode
run: cargo build --profile ${{ matrix.BUILD_TARGET }}
- name: Run tests in "${{ matrix.BUILD_TARGET }}" mode
run: cargo test --profile ${{ matrix.BUILD_TARGET }}