-
-
Notifications
You must be signed in to change notification settings - Fork 319
53 lines (42 loc) · 1.16 KB
/
Copy pathpull_request.yml
File metadata and controls
53 lines (42 loc) · 1.16 KB
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: Pull request
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20, 22, 24]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Cache turbo
uses: actions/cache@v4
id: cache-turbo
with:
path: .turbo
key: turbo-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
turbo-${{ github.ref_name }}
- name: Restore turbo cache from master
if: steps.cache-turbo.outputs.cache-hit != 'true'
uses: actions/cache/restore@v3
with:
path: .turbo
key: turbo-master
- name: Install dependencies
run: npm ci
- name: Compile package
run: npm run compile
- name: Lint
run: npm run lint
- name: Test
run: npm run test