Skip to content

Commit 830088a

Browse files
committed
udpate workflow
1 parent 6f7f9b7 commit 830088a

File tree

4 files changed

+70
-23
lines changed

4 files changed

+70
-23
lines changed

.github/workflows/check.yml

+61-14
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
node-version: '23.1.0'
2121

2222
- name: Setup pnpm
23-
uses: pnpm/action-setup@v4
23+
uses: pnpm/action-setup@v3
2424
with:
25-
version: 10.3.0
25+
version: latest
2626

2727
- name: Get pnpm store directory
2828
id: pnpm-cache
@@ -31,7 +31,7 @@ jobs:
3131
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
3232
3333
- name: Cache pnpm dependencies
34-
uses: actions/cache@v4
34+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
3535
id: pnpm-cache-result
3636
with:
3737
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
@@ -41,7 +41,6 @@ jobs:
4141
- name: Install dependencies
4242
run: pnpm install
4343

44-
# This job is for checking the code style, type and lint errors.
4544
check-all:
4645
needs: install-dependencies
4746
runs-on: ubuntu-latest
@@ -58,12 +57,12 @@ jobs:
5857
- name: Setup Node.js
5958
uses: actions/setup-node@v4
6059
with:
61-
node-version: '23.1.0'
60+
node-version: 'lts/*'
6261

6362
- name: Setup pnpm
64-
uses: pnpm/action-setup@v4
63+
uses: pnpm/action-setup@v3
6564
with:
66-
version: 10.3.0
65+
version: latest
6766

6867
- name: Get pnpm store directory
6968
id: pnpm-cache
@@ -72,15 +71,15 @@ jobs:
7271
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
7372
7473
- name: Cache pnpm dependencies
75-
uses: actions/cache@v4
74+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
7675
id: pnpm-cache-result
7776
with:
7877
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
7978
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
8079
restore-keys: ${{ runner.os }}-pnpm-
8180

8281
- name: 💅🏻 Type Check, Lint and format
83-
run: pnpm check:all
82+
run: pnpm run checkAll
8483

8584
pa11y-ci:
8685
needs: install-dependencies
@@ -98,12 +97,12 @@ jobs:
9897
- name: Setup Node.js
9998
uses: actions/setup-node@v4
10099
with:
101-
node-version: '23.1.0'
100+
node-version: 'lts/*'
102101

103102
- name: Setup pnpm
104-
uses: pnpm/action-setup@v4
103+
uses: pnpm/action-setup@v3
105104
with:
106-
version: 10.3.0
105+
version: latest
107106

108107
- name: Get pnpm store directory
109108
id: pnpm-cache
@@ -112,12 +111,60 @@ jobs:
112111
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
113112
114113
- name: Cache pnpm dependencies
115-
uses: actions/cache@v4
114+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
116115
id: pnpm-cache-result
117116
with:
118117
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
119118
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
120119
restore-keys: ${{ runner.os }}-pnpm-
121120

121+
- name: Build UI
122+
working-directory: ./packages/ui
123+
run: pnpm run build
124+
122125
- name: Build App
123-
run: pnpm build
126+
run: pnpm run build
127+
128+
- name: 🐣 Pa11y Test
129+
working-directory: ${{ github.workspace }}/apps/blog.sakupi01.com
130+
run: pnpm run start & sleep 3; pnpm pa11y
131+
132+
# This job is for executing tests.
133+
test:
134+
needs: install-dependencies
135+
runs-on: ubuntu-latest
136+
env:
137+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
138+
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
139+
steps:
140+
- name: Checkout Commit
141+
uses: actions/checkout@v4
142+
with:
143+
fetch-depth: 2
144+
145+
- name: Setup Node.js
146+
uses: actions/setup-node@v4
147+
with:
148+
node-version: 'lts/*'
149+
150+
- name: Setup pnpm
151+
uses: pnpm/action-setup@v3
152+
with:
153+
version: latest
154+
155+
- name: Get pnpm store directory
156+
id: pnpm-cache
157+
shell: bash
158+
run: |
159+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
160+
161+
- name: Cache pnpm dependencies
162+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
163+
id: pnpm-cache-result
164+
with:
165+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
166+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
167+
restore-keys: ${{ runner.os }}-pnpm-
168+
169+
- name: 🧪 Test
170+
run: pnpm run test:unit

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
tag_name: ${{ steps.release-drafter.outputs.tag_name }}
1919
steps:
2020
# Get next version
21-
- uses: release-drafter/release-drafter@v6
21+
- uses: release-drafter/release-drafter@v5
2222
id: release-drafter
2323
with:
2424
config-name: release-drafter-git-green-cli.yml
@@ -34,7 +34,7 @@ jobs:
3434
steps:
3535
# Extract SemVers from tag ([email protected] -> 1 0 0)
3636
- name: Create SemVer outputs
37-
uses: actions/github-script@v7
37+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
3838
id: semver
3939
with:
4040
script: |
@@ -66,10 +66,10 @@ jobs:
6666
- name: Setup pnpm
6767
uses: pnpm/action-setup@v4
6868
with:
69-
version: 10.3.0
69+
version: latest
7070

7171
- name: Install dependencies
72-
run: pnpm install
72+
run: pnpm install --frozen-lockfile
7373

7474
- name: Build
7575
run: pnpm build-packages

.github/workflows/storybook.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup pnpm
2424
uses: pnpm/action-setup@v4
2525
with:
26-
version: 10.3.0
26+
version: latest
2727

2828
- name: Get pnpm store directory
2929
id: pnpm-cache
@@ -32,18 +32,18 @@ jobs:
3232
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
3333
3434
- name: Cache pnpm dependencies
35-
uses: actions/cache@v4
35+
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
3636
id: pnpm-cache-result
3737
with:
3838
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
3939
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
4040
restore-keys: ${{ runner.os }}-pnpm-
4141

4242
- name: Install dependencies
43-
run: pnpm install
43+
run: pnpm install --frozen-lockfile
4444

4545
- name: Build storybook of @repo/ui
46-
run: pnpm build:storybook
46+
run: pnpm run build:storybook
4747

4848
- name: Deploy
4949
uses: peaceiris/actions-gh-pages@v3

apps/blog.sakupi01.com/.cache/remark-embedder.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
"remark-embedder:@remark-embedder/transformer-oembed:https://speakerdeck.com/mugi_uno/next-dot-js-app-router-deno-mpa-hurontoendoshua-xin": "<iframe id=\"talk_frame_1108295\" class=\"speakerdeck-iframe\" src=\"//speakerdeck.com/player/32e120aa3fa94fa7bc3cc1e2480d8e07\" width=\"710\" height=\"399\" style=\"aspect-ratio:710/399; border:0; padding:0; margin:0; background:transparent;\" frameborder=\"0\" allowtransparency=\"true\" allowfullscreen=\"allowfullscreen\"></iframe>",
77
"remark-embedder:@remark-embedder/transformer-oembed:https://speakerdeck.com/sakito/ji-neng-nidui-surudezaintokai-fa-nojiao-dian-wohe-waseru": "<iframe id=\"talk_frame_1080338\" class=\"speakerdeck-iframe\" src=\"//speakerdeck.com/player/0d8e18aee9a74effa2136e4d00b47169\" width=\"710\" height=\"399\" style=\"aspect-ratio:710/399; border:0; padding:0; margin:0; background:transparent;\" frameborder=\"0\" allowtransparency=\"true\" allowfullscreen=\"allowfullscreen\"></iframe>",
88
"remark-embedder:@remark-embedder/transformer-oembed:https://x.com/sakupi01/status/1785960939688493505": "<blockquote class=\"twitter-tweet\"><p lang=\"ja\" dir=\"ltr\">GWまとまった時間が確保できたので、同期でClean Architecture本の輪読会して、その内容に即してアプリのアーキテクチャ考えて、モブプロで実際にRustでAPI実装していくなどしてた🎏<br>みんな最強すぎて学び過多📝<br><br>Clean Architecture 達人に学ぶソフトウェアの構造と設計 <a href=\"https://t.co/q9Zx8EVfwb\">https://t.co/q9Zx8EVfwb</a></p>&mdash; saku (@sakupi01) <a href=\"https://twitter.com/sakupi01/status/1785960939688493505?ref_src=twsrc%5Etfw\">May 2, 2024</a></blockquote>\n<script async src=\"https://platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>"
9-
}
9+
}

0 commit comments

Comments
 (0)