improve pretty printing of regression stats #1248
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: Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
workflow_call: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
options: ['', '-Dlog -Dchance -Dcalc', '-Dshowdown', '-Dshowdown -Dlog -Dchance -Dcalc'] | |
zig: [0.11.0, master] | |
runs-on: ${{matrix.os}} | |
steps: | |
- run: exit 0 | |
if: ${{ github.event_name == 'workflow_call' && matrix.zig != 'master' }} | |
- uses: actions/checkout@v3 | |
- run: git config core.symlinks true | |
# NOTE: we rely on npm postinstall-ed zig for v0.11.0 | |
- uses: goto-bus-stop/setup-zig@v2 | |
if: ${{ matrix.zig == 'master' }} | |
- uses: AnnikaCodes/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- run: npm install | |
- run: echo "${GITHUB_WORKSPACE}/build/bin/zig" >> $GITHUB_PATH | |
if: ${{ matrix.zig != 'master' && matrix.os != 'windows-latest' }} | |
- run: echo "${env:GITHUB_WORKSPACE}/build/bin/zig" >> $env:GITHUB_PATH | |
if: ${{ matrix.zig != 'master' && matrix.os == 'windows-latest' }} | |
- run: zig build -j1 test ${{matrix.options}} | |
- run: zig build -j1 test ${{matrix.options}} -Doptimize=ReleaseFast | |
- run: npm run compile | |
- run: npm test | |
- run: node src/bin/install-pkmn-engine --options="${{matrix.options}}" | |
- run: npm run test:integration | |
- run: zig build -j1 ${{matrix.options}} -p build | |
- run: make example options="${{matrix.options}}" | |
- run: make lint | |
- run: make clean && node src/bin/install-pkmn-engine --zig | |
- run: zig build -j1 ${{matrix.options}} -p build -Ddynamic | |
- run: make c-example options="${{matrix.options}}" dynamic=true |