Skip to content

Commit b13ed0a

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

File tree

2 files changed

+55
-5
lines changed

2 files changed

+55
-5
lines changed

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

Lines changed: 6 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,14 @@ 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+
run_install: false
5354

5455
- name: Setup Node
5556
uses: actions/setup-node@v4
5657
with:
57-
node-version: '20'
58+
node-version: 22
5859
cache: pnpm
5960

6061
- name: Setup Pages
@@ -77,7 +78,7 @@ jobs:
7778
name: github-pages
7879
url: ${{ steps.deployment.outputs.page_url }}
7980
runs-on: ubuntu-latest
80-
needs: build
81+
needs: [quickcheck, build]
8182
steps:
8283
- name: Deploy to GitHub Pages
8384
id: deployment

.github/workflows/quickcheck.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
run_install: false
38+
39+
- name: Setup Node
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: 22
43+
cache: pnpm
44+
45+
- name: Install dependencies
46+
run: pnpm i
47+
48+
- name: Run quickcheck
49+
run: pnpm run quickcheck

0 commit comments

Comments
 (0)