Skip to content

Commit 84477d1

Browse files
committed
NO-ISSUE format
1 parent 9e11987 commit 84477d1

File tree

1 file changed

+50
-46
lines changed

1 file changed

+50
-46
lines changed

.github/workflows/test.yml

Lines changed: 50 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -14,57 +14,61 @@ jobs:
1414
strategy:
1515
matrix:
1616
# https://nodejs.org/en/about/releases/
17-
node: [ '18', '20', '20.12.2', '22' ]
17+
node:
18+
- '18'
19+
- '20'
20+
- '20.12.2'
21+
- '22'
1822
fail-fast: false
1923

2024
name: Node.js ${{ matrix.node }}
2125

2226
steps:
23-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24-
with:
25-
submodules: true
26-
- name: actions/setup-java@v3
27-
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
28-
with:
29-
distribution: 'temurin'
30-
java-version: 17
31-
architecture: x64
32-
- name: Setup Node.js
33-
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
34-
with:
35-
node-version: ${{ matrix.node }}
36-
cache: 'npm'
37-
- name: Install Dependency
38-
run: npm ci
39-
- name: Test generator
40-
run: cd generator; mvn package; cd ..
41-
- name: Generate code
42-
run: |
43-
python3 generate-code.py
44-
- name: Test Project
45-
run: export NODE_OPTIONS=--max-old-space-size=6144; npm test
46-
- name: Test building apidocs
47-
run: export NODE_OPTIONS=--openssl-legacy-provider; npm run apidocs
48-
- name: Test building docs
49-
run: export NODE_OPTIONS=--openssl-legacy-provider; npm run docs:build
50-
- name: Test building examples (CJS)
51-
run: |
52-
cd examples/echo-bot-ts-cjs
53-
npm run build-sdk
54-
npm install
55-
npm run build
56-
cd -
57-
- name: Test building examples (ESM)
58-
run: |
59-
cd examples/echo-bot-ts-esm
60-
npm run build-sdk
61-
npm install
62-
npm run build
63-
cd -
64-
- name: publint
65-
run: npx publint
66-
- name: validate package
67-
run: npx @arethetypeswrong/cli $(npm pack)
27+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+
with:
29+
submodules: true
30+
- name: actions/setup-java@v3
31+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
32+
with:
33+
distribution: 'temurin'
34+
java-version: 17
35+
architecture: x64
36+
- name: Setup Node.js
37+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
38+
with:
39+
node-version: ${{ matrix.node }}
40+
cache: 'npm'
41+
- name: Install Dependency
42+
run: npm ci
43+
- name: Test generator
44+
run: cd generator; mvn package; cd ..
45+
- name: Generate code
46+
run: |
47+
python3 generate-code.py
48+
- name: Test Project
49+
run: export NODE_OPTIONS=--max-old-space-size=6144; npm test
50+
- name: Test building apidocs
51+
run: export NODE_OPTIONS=--openssl-legacy-provider; npm run apidocs
52+
- name: Test building docs
53+
run: export NODE_OPTIONS=--openssl-legacy-provider; npm run docs:build
54+
- name: Test building examples (CJS)
55+
run: |
56+
cd examples/echo-bot-ts-cjs
57+
npm run build-sdk
58+
npm install
59+
npm run build
60+
cd -
61+
- name: Test building examples (ESM)
62+
run: |
63+
cd examples/echo-bot-ts-esm
64+
npm run build-sdk
65+
npm install
66+
npm run build
67+
cd -
68+
- name: publint
69+
run: npx publint
70+
- name: validate package
71+
run: npx @arethetypeswrong/cli $(npm pack)
6872

6973
pinact:
7074
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)