xref: /freebsd/sys/contrib/openzfs/.github/workflows/unit-tests.yml (revision d0b3ecdc274930e190ea233b6b69ff03782eaf8d)
1name: unit-tests
2
3on:
4  push:
5  pull_request:
6
7concurrency:
8  group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9  cancel-in-progress: true
10
11jobs:
12  unit-tests:
13    runs-on: ubuntu-24.04
14    steps:
15    - uses: actions/checkout@v6
16      with:
17        ref: ${{ github.event.pull_request.head.sha }}
18    - name: Install dependencies
19      run: |
20        ONLY_DEPS=1 .github/workflows/scripts/qemu-3-deps-vm.sh ubuntu24
21    - name: Autogen
22      run: |
23        ./autogen.sh
24    - name: Configure
25      run: |
26        ./configure --with-config=user --enable-debug --enable-debuginfo
27    - name: Unit tests
28      run: |
29        make -j$(nproc) unit
30