-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (39 loc) · 1.01 KB
/
nodejs.yml
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
35
36
37
38
39
40
41
42
43
name: Node CI
on: [push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x, 20.x]
include:
- os: macos-latest
node-version: 18.x
- os: macos-14
node-version: 18.x
# TODO : add Windows build
# - os: windows-latest
# node-version: 18.x
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install Java
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: 'zulu'
java-version: '11'
- name: yarn install
run: yarn install
- name: yarn build
run: yarn build
- name: Linting
run: yarn lint:ci
- name: Testing
run: yarn test:ci
env:
CI: true