Skip to content

Commit bddf85f

Browse files
committed
chore(ci): update CIs
1 parent 4ea4a6d commit bddf85f

File tree

2 files changed

+57
-5
lines changed

2 files changed

+57
-5
lines changed

.github/workflows/frontend-to-pages.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ concurrency:
2222
cancel-in-progress: false
2323

2424
jobs:
25-
# Build job
25+
quickcheck:
26+
uses: ./.github/workflows/quickcheck.yml
2627
build:
2728
environment: github-pages
2829

@@ -47,14 +48,15 @@ jobs:
4748
${{ runner.os }}-turbo-
4849
4950
- name: Setup pnpm
50-
uses: pnpm/action-setup@v3
51+
uses: pnpm/action-setup@v4
5152
with:
52-
version: 9
53+
version: 10
54+
run_install: false
5355

5456
- name: Setup Node
5557
uses: actions/setup-node@v4
5658
with:
57-
node-version: '20'
59+
node-version: 22
5860
cache: pnpm
5961

6062
- name: Setup Pages
@@ -77,7 +79,7 @@ jobs:
7779
name: github-pages
7880
url: ${{ steps.deployment.outputs.page_url }}
7981
runs-on: ubuntu-latest
80-
needs: build
82+
needs: [quickcheck, build]
8183
steps:
8284
- name: Deploy to GitHub Pages
8385
id: deployment

.github/workflows/quickcheck.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Run `quickcheck` script
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
# Uncomment next 2 lines to activate
6+
# push:
7+
# branches: [main]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
# Allows this workflow to be called from other workflows
12+
workflow_call:
13+
14+
jobs:
15+
main:
16+
env:
17+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
18+
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
19+
TURBO_REMOTE_ONLY: true
20+
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Cache turbo build setup
27+
uses: actions/cache@v4
28+
with:
29+
path: .turbo
30+
key: ${{ runner.os }}-turbo-${{ github.sha }}
31+
restore-keys: |
32+
${{ runner.os }}-turbo-
33+
34+
- name: Setup pnpm
35+
uses: pnpm/action-setup@v4
36+
with:
37+
version: 10
38+
run_install: false
39+
40+
- name: Setup Node
41+
uses: actions/setup-node@v4
42+
with:
43+
node-version: 22
44+
cache: pnpm
45+
46+
- name: Install dependencies
47+
run: pnpm i
48+
49+
- name: Run quickcheck
50+
run: pnpm run quickcheck

0 commit comments

Comments
 (0)