zig 0.14.0-dev.1710+8ee52f99c #129
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: TS Lib | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
ts-lib: | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [20.x] | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
working-directory: ./ts-lib | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
cache-dependency-path: ts-lib/package-lock.json | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Run tests | |
run: npm test | |
- name: Safari Tests | |
if: matrix.os == 'macos-latest' | |
run: npm run test:safari | |
- name: Chrome Tests | |
if: always() | |
run: npm run test:chrome | |
- name: Firefox Tests | |
if: always() | |
run: npm run test:firefox | |
- name: Edge Tests | |
if: matrix.os != 'macos-latest' | |
run: npm run test:edge | |
- name: Benchmarks | |
if: always() | |
run: npm run bench | |
- name: Safari Benchmarks | |
if: matrix.os == 'macos-latest' | |
run: npm run bench:safari | |
- name: Chrome Benchmarks | |
if: always() | |
run: npm run bench:chrome | |
- name: Firefox Benchmarks | |
if: always() | |
run: npm run bench:firefox | |
- name: Edge Benchmarks | |
if: matrix.os != 'macos-latest' | |
run: npm run bench:edge |