Skip to content

Commit 902d0f6

Browse files
committed
ci: add node-version option to setup-vp and replace pnpm vp with vp
1 parent 61feab2 commit 902d0f6

6 files changed

Lines changed: 40 additions & 17 deletions

File tree

β€Ž.github/workflows/autofix.ymlβ€Ž

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,19 @@ jobs:
2121
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222

2323
- uses: voidzero-dev/setup-vp@b5d848f5a62488f3d3d920f8aa6ac318a60c5f07 # v1
24+
with:
25+
node-version: lts/*
2426

2527
- name: 🎨 Check for non-RTL/non-a11y CSS classes
26-
run: pnpm vp run lint:css
28+
run: vp run lint:css
2729

2830
- name: 🌐 Compare translations
29-
run: pnpm vp run i18n:check
31+
run: vp run i18n:check
3032

3133
- name: 🌍 Update lunaria data
32-
run: pnpm vp run build:lunaria
34+
run: vp run build:lunaria
3335

3436
- name: πŸ”  Fix lint errors
35-
run: pnpm vp run lint:fix
37+
run: vp run lint:fix
3638

3739
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 # 635ffb0c9798bd160680f18fd73371e355b85f27

β€Ž.github/workflows/chromatic.ymlβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
ref: ${{ github.event.pull_request.head.sha || github.sha }}
2828

2929
- uses: voidzero-dev/setup-vp@b5d848f5a62488f3d3d920f8aa6ac318a60c5f07 # v1
30+
with:
31+
node-version: lts/*
3032

3133
- name: πŸ§ͺ Run Chromatic Visual and Accessibility Tests
3234
uses: chromaui/action@0794e6939fe40ce46a88963f818092afc427da5b # v15.3.0

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ jobs:
3030

3131
- uses: voidzero-dev/setup-vp@b5d848f5a62488f3d3d920f8aa6ac318a60c5f07 # v1
3232
with:
33+
node-version: lts/*
3334
run-install: false
3435

3536
- name: πŸ“¦ Install dependencies (root only, no scripts)
3637
run: pnpm install --filter . --ignore-scripts
3738

3839
- name: πŸ”  Lint project
39-
run: pnpm vp run lint
40+
run: vp run lint
4041

4142
types:
4243
name: πŸ’ͺ Type check
@@ -46,9 +47,11 @@ jobs:
4647
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4748

4849
- uses: voidzero-dev/setup-vp@b5d848f5a62488f3d3d920f8aa6ac318a60c5f07 # v1
50+
with:
51+
node-version: lts/*
4952

5053
- name: πŸ’ͺ Type check
51-
run: pnpm vp run test:types
54+
run: vp run test:types
5255

5356
unit:
5457
name: πŸ§ͺ Unit tests
@@ -58,9 +61,11 @@ jobs:
5861
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5962

6063
- uses: voidzero-dev/setup-vp@b5d848f5a62488f3d3d920f8aa6ac318a60c5f07 # v1
64+
with:
65+
node-version: lts/*
6166

6267
- name: πŸ§ͺ Unit tests
63-
run: pnpm vp test --project unit --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml
68+
run: vp test --project unit --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml
6469

6570
- name: β¬†οΈŽ Upload test results to Codecov
6671
if: ${{ !cancelled() }}
@@ -76,12 +81,14 @@ jobs:
7681
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7782

7883
- uses: voidzero-dev/setup-vp@b5d848f5a62488f3d3d920f8aa6ac318a60c5f07 # v1
84+
with:
85+
node-version: lts/*
7986

8087
- name: 🌐 Install browser
81-
run: pnpm vp exec playwright install chromium-headless-shell
88+
run: vp exec playwright install chromium-headless-shell
8289

8390
- name: πŸ§ͺ Component tests
84-
run: pnpm vp test --project nuxt --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml
91+
run: vp test --project nuxt --coverage --reporter=default --reporter=junit --outputFile=test-report.junit.xml
8592

8693
- name: β¬†οΈŽ Upload coverage reports to Codecov
8794
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
@@ -105,14 +112,16 @@ jobs:
105112
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
106113

107114
- uses: voidzero-dev/setup-vp@b5d848f5a62488f3d3d920f8aa6ac318a60c5f07 # v1
115+
with:
116+
node-version: lts/*
108117

109118
- name: πŸ—οΈ Build project
110-
run: pnpm vp run build:test
119+
run: vp run build:test
111120
env:
112121
VALIDATE_HTML: true
113122

114123
- name: πŸ–₯️ Test project (browser)
115-
run: pnpm vp run test:browser:prebuilt
124+
run: vp run test:browser:prebuilt
116125

117126
a11y:
118127
name: β™Ώ Accessibility audit
@@ -125,12 +134,14 @@ jobs:
125134
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
126135

127136
- uses: voidzero-dev/setup-vp@b5d848f5a62488f3d3d920f8aa6ac318a60c5f07 # v1
137+
with:
138+
node-version: lts/*
128139

129140
- name: πŸ—οΈ Build project
130-
run: pnpm vp run build:test
141+
run: vp run build:test
131142

132143
- name: β™Ώ Accessibility audit (Lighthouse - ${{ matrix.mode }} mode)
133-
run: pnpm vp run test:a11y:prebuilt
144+
run: vp run test:a11y:prebuilt
134145
env:
135146
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
136147
LIGHTHOUSE_COLOR_MODE: ${{ matrix.mode }}
@@ -143,9 +154,11 @@ jobs:
143154
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
144155

145156
- uses: voidzero-dev/setup-vp@b5d848f5a62488f3d3d920f8aa6ac318a60c5f07 # v1
157+
with:
158+
node-version: lts/*
146159

147160
- name: 🧹 Check for unused code
148-
run: pnpm vp run knip
161+
run: vp run knip
149162

150163
i18n:
151164
name: 🌐 i18n validation
@@ -156,15 +169,16 @@ jobs:
156169

157170
- uses: voidzero-dev/setup-vp@b5d848f5a62488f3d3d920f8aa6ac318a60c5f07 # v1
158171
with:
172+
node-version: lts/*
159173
run-install: false
160174

161175
- name: πŸ“¦ Install dependencies (root only, no scripts)
162176
run: pnpm install --filter . --ignore-scripts
163177

164178
- name: 🌐 Check for missing or dynamic i18n keys
165-
run: pnpm vp run i18n:report
179+
run: vp run i18n:report
166180

167181
- name: 🌐 Check i18n schema is up to date
168182
run: |
169-
pnpm vp run i18n:schema
183+
vp run i18n:schema
170184
git diff --exit-code i18n/schema.json

β€Ž.github/workflows/lunaria.ymlβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
fetch-depth: 0
3030

3131
- uses: voidzero-dev/setup-vp@b5d848f5a62488f3d3d920f8aa6ac318a60c5f07 # v1
32+
with:
33+
node-version: lts/*
3234

3335
- name: Generate Lunaria Overview
3436
uses: lunariajs/action@4911ad0736d1e3b20af4cb70f5079aea2327ed8e # v1-prerelease

β€Ž.github/workflows/release-pr.ymlβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222

2323
- uses: voidzero-dev/setup-vp@b5d848f5a62488f3d3d920f8aa6ac318a60c5f07 # v1
2424
with:
25+
node-version: lts/*
2526
run-install: false
2627

2728
- name: πŸ” Check for unreleased commits

β€Ž.github/workflows/release-tag.ymlβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525

2626
- uses: voidzero-dev/setup-vp@b5d848f5a62488f3d3d920f8aa6ac318a60c5f07 # v1
2727
with:
28+
node-version: lts/*
2829
run-install: false
2930

3031
- name: πŸ”’ Determine next version
@@ -60,7 +61,7 @@ jobs:
6061
6162
- name: πŸ“¦ Install dependencies
6263
if: steps.check.outputs.skip == 'false'
63-
run: pnpm vp install --filter . --ignore-scripts
64+
run: vp install --filter . --ignore-scripts
6465

6566
- name: πŸ“ Generate release notes
6667
if: steps.check.outputs.skip == 'false'
@@ -101,6 +102,7 @@ jobs:
101102

102103
- uses: voidzero-dev/setup-vp@b5d848f5a62488f3d3d920f8aa6ac318a60c5f07 # v1
103104
with:
105+
node-version: lts/*
104106
run-install: false
105107

106108
- name: πŸ“¦ Install dependencies

0 commit comments

Comments
Β (0)