From 161515316b77ae3f48338d9e09fa7df558fdd1da Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Fri, 13 Dec 2024 18:46:15 +0900 Subject: [PATCH 1/2] fix(ci): use `lts/*` instead of 20.x --- .github/workflows/build.yml | 4 ++-- .github/workflows/migrate.yaml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/website.yml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 919403feb..cef70fbba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: lts/* - uses: pnpm/action-setup@v2 with: version: 8 @@ -28,4 +28,4 @@ jobs: - name: test working-directory: ./test - run: pnpm install && npm start -- --skipBuild \ No newline at end of file + run: pnpm install && npm start -- --skipBuild diff --git a/.github/workflows/migrate.yaml b/.github/workflows/migrate.yaml index 6cf147ca0..7d3c70ee7 100644 --- a/.github/workflows/migrate.yaml +++ b/.github/workflows/migrate.yaml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: lts/* - uses: pnpm/action-setup@v2 with: version: 8 @@ -28,4 +28,4 @@ jobs: - name: test working-directory: ./packages/migrate - run: npm run test \ No newline at end of file + run: npm run test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 67b40381b..762d591fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: lts/* registry-url: https://registry.npmjs.org/ - uses: pnpm/action-setup@v2 with: @@ -28,4 +28,4 @@ jobs: uses: JamesIves/github-pages-deploy-action@4.1.3 with: branch: gh-pages - folder: ./website/out \ No newline at end of file + folder: ./website/out diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 68d214afa..bc74e505c 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: lts/* - uses: pnpm/action-setup@v2 with: version: 8 @@ -27,4 +27,4 @@ jobs: uses: JamesIves/github-pages-deploy-action@4.1.3 with: branch: gh-pages - folder: ./website/out \ No newline at end of file + folder: ./website/out From edb8165e859a72705a9cccbbcd9cb22292ac919e Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Tue, 31 Dec 2024 21:37:10 +0900 Subject: [PATCH 2/2] fix(ci): use matrix for test --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cef70fbba..34f622882 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,11 +11,14 @@ on: jobs: Ubuntu: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x, 22.x, lts/*] steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: lts/* + node-version: ${{ matrix.node-version }} - uses: pnpm/action-setup@v2 with: version: 8