forked from karlvr/openapi-generator-plus-generators
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 884 Bytes
/
Copy pathgithub-actions-build.yml
File metadata and controls
34 lines (34 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 18.x
- 20.x
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
# https://pnpm.io/continuous-integration
- uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- name: Use Node.js ${{ matrix.node-version }} for test
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
# Run tests using npm as pnpm requires node >= 18
- run: npm test