ci/main: run unit tests #35
This file contains hidden or 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
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| name: Checks | |
| jobs: | |
| check: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| zig: | |
| - latest | |
| - master | |
| optimize: | |
| - Debug | |
| - ReleaseSafe | |
| - ReleaseFast | |
| - ReleaseSmall | |
| lookupTable: | |
| - none | |
| - small | |
| - all | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4.2.2 | |
| - name: Setup Zig | |
| uses: mlugg/setup-zig@v1.2.1 | |
| with: | |
| version: ${{ matrix.zig }} | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version-file: package.json | |
| - name: Install Test Dependencies | |
| run: bun i | |
| - name: Run Compatibility Tests | |
| run: zig build test-compat -Doptimize=${{ matrix.optimize }} -Dlookup-table=${{ matrix.lookupTable }} | |
| - name: Run Unit Tests | |
| run: zig build test -Doptimize=${{ matrix.optimize }} -Dlookup-table=${{ matrix.lookupTable }} |