-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.23 KB
/
change.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
name: Change
on:
push:
branches: ["master"]
pull_request:
types: [opened, synchronize]
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Shared Setup
uses: ./.github/actions/setup
- name: Run lint
run: npm run lint
- name: Run format
run: npm run format:check
test:
runs-on: ubuntu-latest
needs: analyze
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Shared Setup
uses: ./.github/actions/setup
- name: Run tests
run: npm run test:coverage
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
bench:
runs-on: ubuntu-latest
needs: test
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Shared Setup
uses: ./.github/actions/setup
- name: Run Benchmarks
uses: CodSpeedHQ/action@v2
with:
run: npm run bench
token: ${{ secrets.CODSPEED_TOKEN }}