-
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (58 loc) · 1.85 KB
/
ts-lib.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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