summaryrefslogtreecommitdiff
path: root/.github/workflows/test-frontend.yml
diff options
context:
space:
mode:
authorzyoshoka <107108195+zyoshoka@users.noreply.github.com>2025-05-04 14:14:09 +0900
committerGitHub <noreply@github.com>2025-05-04 14:14:09 +0900
commita5fa9a2cef0b76c3e3179ae4afd1616a10d32f35 (patch)
treee9cb89a5c4c528a5810f6bb93d2c33188c48b0e5 /.github/workflows/test-frontend.yml
parentfix(frontend): MkFolderのアニメーションにフォールバックを追... (diff)
downloadmisskey-a5fa9a2cef0b76c3e3179ae4afd1616a10d32f35.tar.gz
misskey-a5fa9a2cef0b76c3e3179ae4afd1616a10d32f35.tar.bz2
misskey-a5fa9a2cef0b76c3e3179ae4afd1616a10d32f35.zip
chore(workflow): use `node-version-file` instead of hardcoded `node-version` (#15658)
* chore(workflow): use `node-version-file` instead of hardcoded `node-version` * chore: test min version
Diffstat (limited to '.github/workflows/test-frontend.yml')
-rw-r--r--.github/workflows/test-frontend.yml13
1 files changed, 4 insertions, 9 deletions
diff --git a/.github/workflows/test-frontend.yml b/.github/workflows/test-frontend.yml
index 25d263f102..94e43cf91e 100644
--- a/.github/workflows/test-frontend.yml
+++ b/.github/workflows/test-frontend.yml
@@ -27,20 +27,16 @@ jobs:
name: Unit tests (frontend)
runs-on: ubuntu-latest
- strategy:
- matrix:
- node-version: [22.11.0]
-
steps:
- uses: actions/checkout@v4.2.2
with:
submodules: true
- name: Setup pnpm
uses: pnpm/action-setup@v4.1.0
- - name: Use Node.js ${{ matrix.node-version }}
+ - name: Use Node.js
uses: actions/setup-node@v4.4.0
with:
- node-version: ${{ matrix.node-version }}
+ node-version-file: '.node-version'
cache: 'pnpm'
- run: pnpm i --frozen-lockfile
- name: Check pnpm-lock.yaml
@@ -64,7 +60,6 @@ jobs:
strategy:
fail-fast: false
matrix:
- node-version: [22.11.0]
browser: [chrome]
services:
@@ -92,10 +87,10 @@ jobs:
# if: ${{ matrix.browser == 'firefox' }}
- name: Setup pnpm
uses: pnpm/action-setup@v4.1.0
- - name: Use Node.js ${{ matrix.node-version }}
+ - name: Use Node.js
uses: actions/setup-node@v4.4.0
with:
- node-version: ${{ matrix.node-version }}
+ node-version-file: '.node-version'
cache: 'pnpm'
- run: pnpm i --frozen-lockfile
- name: Copy Configure