-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.06 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
36
37
38
39
40
41
42
43
44
45
46
47
name: test
on:
push:
workflow_dispatch:
permissions:
contents: read # for checkout repository
actions: read # for fetching base branch bundle stats
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out
uses: actions/checkout@v4
- name: Enable corepack for pnpm
run: corepack enable pnpm
- name: Setup & Restore Node cache
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version-file: 'package.json'
- name: Install all packages
run: pnpm install --frozen-lockfile
- name: Restore turbo cache
uses: actions/cache@v4
with:
path: .turbo/cache
key:
turbo/${{ github.job }}/${{ github.ref_name }}/${{ github.sha }}
restore-keys: |
turbo/${{ github.job }}/${{ github.ref_name }}/
turbo/${{ github.job }}/
- name: Lint check
run: pnpm lint
# - name: Type check
# run: pnpm typecheck
- name: Build check
run: pnpm build