-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 1.01 KB
/
test.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
name: Test
on:
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up repo
uses: ./.github/actions/setup
- name: Check
run: pnpm run check
- name: Typecheck
run: pnpm run typecheck
- name: Test
run: pnpm run test
- name: Has src changed
if: github.event_name == 'pull_request'
id: src_changed
uses: tj-actions/changed-files@v45
with:
files: src/index.ts
- name: Benchmark against current release
if: steps.src_changed.outputs.any_changed == 'true'
id: benchmark
run: pnpm run benchmark:diff:ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Validate PR commits with commitlint
run: pnpm run commitlint -- --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose