-
Notifications
You must be signed in to change notification settings - Fork 9
chore: bump minimum Node.js version to v20 #1184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 23 commits
a729071
3e7b037
dc7e82f
768d84d
98915df
ffce295
a0b942b
a8ce3b3
a80f409
ceaae5c
7f203c4
4e55db2
27cf4f3
89188da
d48faff
16b9c7f
e0a32fd
8e59356
599f990
7408bd9
8f6246f
4e0e2fb
d7210e2
0119907
308d198
ec1bfda
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: test-executables | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - "renovate/**" | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| build-executables: | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ビルドした実行ファイルが各プラットフォーム上で正常に動作するかのテストを追加した。 |
||
| name: Build executables | ||
| # ubuntu上でビルドしたmacOS向けの実行ファイルが正常に動作しないため、 | ||
| # macOSランナー上でビルドする | ||
| # ref. https://github.com/yao-pkg/pkg/issues/183 | ||
| runs-on: macos-latest | ||
| steps: | ||
| - uses: Kesin11/actions-timeline@3046833d9aacfd7745c5264b7f3af851c3e2a619 # v2 | ||
| - uses: actions/checkout@v4 | ||
| - uses: pnpm/action-setup@v3 | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: "24" | ||
| cache: "pnpm" | ||
|
|
||
| - run: pnpm install --frozen-lockfile | ||
| - run: pnpm build:executables | ||
| - run: jq -r '.version' ./package.json > bin/EXPECTED_VERSION | ||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: executables | ||
| path: bin/* | ||
| retention-days: 1day | ||
|
|
||
| test-executables: | ||
| name: Test executables - ${{ matrix.os }} | ||
| runs-on: ${{ matrix.os }} | ||
| needs: build-executables | ||
|
|
||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-latest, windows-latest, macos-latest] | ||
|
|
||
| steps: | ||
| - uses: actions/download-artifact@v5 | ||
| with: | ||
| name: executables | ||
| - run: chmod +x ./cli-kintone-* | ||
| - run: ./cli-kintone-linux-x64 --version | tee ACTUAL | ||
| if: ${{ matrix.os == 'ubuntu-latest' }} | ||
| - run: ./cli-kintone-win-x64.exe --version | tee ACTUAL | ||
| if: ${{ matrix.os == 'windows-latest' }} | ||
| - run: ./cli-kintone-macos-arm64 --version | tee ACTUAL | ||
| if: ${{ matrix.os == 'macos-latest' }} | ||
| - run: diff EXPECTED_VERSION ACTUAL_VERSION | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ jobs: | |
|
|
||
| strategy: | ||
| matrix: | ||
| node-version: [18.x] | ||
| node-version: [20, 22, 24] | ||
| os: [ubuntu-latest, windows-latest, macos-latest] | ||
|
|
||
| steps: | ||
|
|
@@ -40,7 +40,7 @@ jobs: | |
| if: ${{ env.platform == 'ubuntu' && !cancelled() }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: allure_results_unit_${{ env.platform }} | ||
| name: allure_results_unit_${{ env.platform }}_node${{ matrix.node-version }} | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. artifactの名前が重複してエラーになるため、Nodeバージョンをつけるようにしました。
https://github.com/kintone/cli-kintone/actions/runs/18568267797/job/52935195146 |
||
| path: allure-results | ||
| if-no-files-found: ignore | ||
| outputs: | ||
|
|
@@ -72,7 +72,7 @@ jobs: | |
| strategy: | ||
| max-parallel: 1 | ||
| matrix: | ||
| node-version: [18.x] | ||
| node-version: [24] | ||
| os: ${{ fromJSON(needs.get-running-os-for-test-e2e.outputs.os) }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,7 +38,7 @@ Feature: record common | |
| Scenario: Invalid URL format | ||
| When I run the command with args "record export --base-url foo --app 1 --api-token abc" | ||
| Then I should get the exit code is non-zero | ||
| And The output error message should match with the pattern: "ERROR: TypeError \[ERR_INVALID_URL]: Invalid URL" | ||
| And The output error message should match with the pattern: "ERROR: TypeError: Invalid URL" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Node v18とv24で
v18$ node -e 'new URL("foo")'
node:internal/url:676
throw new ERR_INVALID_URL(input);
^
TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:405:5)
at new URL (node:internal/url:676:13)
at [eval]:1:1
at runScriptInThisContext (node:internal/vm:143:10)
at node:internal/process/execution:100:14
at [eval]-wrapper:6:24
at runScript (node:internal/process/execution:83:62)
at evalScript (node:internal/process/execution:114:10)
at node:internal/main/eval_string:30:3 {
input: 'foo',
code: 'ERR_INVALID_URL'
}
Node.js v18.20.8v24$ node -e 'new URL("foo")'
node:internal/url:826
href = bindingUrl.parse(input, base, true);
^
TypeError: Invalid URL
at new URL (node:internal/url:826:25)
at [eval]:1:1
at runScriptInThisContext (node:internal/vm:219:10)
at node:internal/process/execution:451:12
at [eval]-wrapper:6:24
at runScriptInContext (node:internal/process/execution:449:60)
at evalFunction (node:internal/process/execution:283:30)
at evalTypeScript (node:internal/process/execution:295:3)
at node:internal/main/eval_string:71:3 {
code: 'ERR_INVALID_URL',
input: 'foo'
}
Node.js v24.5.0 |
||
|
|
||
| Scenario: No app option | ||
| When I run the command with args "record export --base-url http://example.com" | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| [tools] | ||
| pnpm = "10.17.1" | ||
| node = "18" | ||
| node = "24" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ubuntu上でビルドしたmacOS向けの実行ファイルが正常に動作しない不具合がある。
そのため、当面の間はmacOSランナー上で実行ファイルをビルドする。
ref. yao-pkg/pkg#183