-
Notifications
You must be signed in to change notification settings - Fork 291
32 lines (32 loc) · 845 Bytes
/
pull-requests.yml
File metadata and controls
32 lines (32 loc) · 845 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
name: Pull Requests
on:
pull_request:
types: [opened, edited, reopened, synchronize]
branches:
- master
jobs:
unit-test:
name: Unit Test
runs-on: ubuntu-latest
strategy:
matrix:
nodeVersion: [ 18, 20, 22 ]
jdkVersion: [ openjdk9, openjdk10, openjdk11, openjdk21 ]
steps:
- name: Checkout source code
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.nodeVersion }}
- name: Set up clang-format
run: sudo apt-get install -y clang-format-14
- name: npm ci
run: npm ci
- name: npm run format-cpp
run: npm run format-cpp
- name: npm run format
run: npm run format
- name: npm run lint
run: npm run lint
- name: Unit test
run: npm test