Skip to content

Commit 053a4ca

Browse files
chore: nodejs versions in github workflows (#680)
1 parent 70f68e9 commit 053a4ca

File tree

5 files changed

+17
-44
lines changed

5 files changed

+17
-44
lines changed

.github/workflows/buildpack-integration-test.yml

Lines changed: 12 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,63 +14,36 @@ on:
1414
permissions: read-all
1515

1616
jobs:
17-
nodejs10:
18-
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
19-
with:
20-
http-builder-source: 'test/conformance'
21-
http-builder-target: 'writeHttpDeclarative'
22-
cloudevent-builder-source: 'test/conformance'
23-
cloudevent-builder-target: 'writeCloudEventDeclarative'
24-
prerun: 'test/conformance/prerun.sh'
25-
builder-runtime: 'nodejs10'
26-
builder-runtime-version: '10'
27-
nodejs12:
28-
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
29-
with:
30-
http-builder-source: 'test/conformance'
31-
http-builder-target: 'writeHttpDeclarative'
32-
cloudevent-builder-source: 'test/conformance'
33-
cloudevent-builder-target: 'writeCloudEventDeclarative'
34-
prerun: 'test/conformance/prerun.sh'
35-
builder-runtime: 'nodejs12'
36-
builder-runtime-version: '12'
37-
nodejs14:
38-
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
39-
with:
40-
http-builder-source: 'test/conformance'
41-
http-builder-target: 'writeHttpDeclarative'
42-
cloudevent-builder-source: 'test/conformance'
43-
cloudevent-builder-target: 'writeCloudEventDeclarative'
44-
prerun: 'test/conformance/prerun.sh'
45-
builder-runtime: 'nodejs14'
46-
builder-runtime-version: '14'
47-
nodejs16:
17+
nodejs18:
4818
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
4919
with:
5020
http-builder-source: 'test/conformance'
5121
http-builder-target: 'writeHttpDeclarative'
5222
cloudevent-builder-source: 'test/conformance'
5323
cloudevent-builder-target: 'writeCloudEventDeclarative'
5424
prerun: 'test/conformance/prerun.sh'
55-
builder-runtime: 'nodejs16'
56-
builder-runtime-version: '16'
57-
nodejs18:
25+
builder-runtime: 'nodejs18'
26+
builder-runtime-version: '18'
27+
builder-url: 'us-docker.pkg.dev/serverless-runtimes/google-22-full/builder/nodejs:latest'
28+
nodejs20:
5829
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
5930
with:
6031
http-builder-source: 'test/conformance'
6132
http-builder-target: 'writeHttpDeclarative'
6233
cloudevent-builder-source: 'test/conformance'
6334
cloudevent-builder-target: 'writeCloudEventDeclarative'
6435
prerun: 'test/conformance/prerun.sh'
65-
builder-runtime: 'nodejs18'
66-
builder-runtime-version: '18'
67-
nodejs20:
36+
builder-runtime: 'nodejs20'
37+
builder-runtime-version: '20'
38+
builder-url: 'us-docker.pkg.dev/serverless-runtimes/google-22-full/builder/nodejs:latest'
39+
nodejs22:
6840
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@main
6941
with:
7042
http-builder-source: 'test/conformance'
7143
http-builder-target: 'writeHttpDeclarative'
7244
cloudevent-builder-source: 'test/conformance'
7345
cloudevent-builder-target: 'writeCloudEventDeclarative'
7446
prerun: 'test/conformance/prerun.sh'
75-
builder-runtime: 'nodejs20'
76-
builder-runtime-version: '20'
47+
builder-runtime: 'nodejs22'
48+
builder-runtime-version: '22'
49+
builder-url: 'us-docker.pkg.dev/serverless-runtimes/google-22-full/builder/nodejs:latest'

.github/workflows/conformance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
node-version: [10, 12, 14, 16, 18, 20]
16+
node-version: [18, 20, 22]
1717
steps:
1818
- name: Harden Runner
1919
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Node.js
2626
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
2727
with:
28-
node-version: '14'
28+
node-version: '20'
2929
- name: Install dependencies
3030
run: npm ci
3131
- name: Build docs

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2626
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
2727
with:
28-
node-version: '16.x'
28+
node-version: '20.x'
2929
- run: npm install
3030
- run: npm run build
3131
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
3232
with:
33-
node-version: '16.x'
33+
node-version: '20.x'
3434
registry-url: 'https://wombat-dressing-room.appspot.com'
3535
- id: publish
3636
env:

.github/workflows/unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
test:
1212
strategy:
1313
matrix:
14-
node-version: [10, 12, 14, 16, 18, 20]
14+
node-version: [18, 20, 22]
1515
platform: [ubuntu-latest, macos-latest, windows-latest]
1616
runs-on: ${{ matrix.platform }}
1717
steps:

0 commit comments

Comments
 (0)