This repository was archived by the owner on Sep 17, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (42 loc) · 1.14 KB
/
ci.yml
File metadata and controls
45 lines (42 loc) · 1.14 KB
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
44
45
name: "ci"
on:
pull_request:
push:
branches:
- main
- "release/*"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: yarn install --frozen-lockfile
- run: |
git config clangFormat.binary node_modules/.bin/clang-format
git config clangFormat.style file
yarn lint
build-test-matrix:
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-2019, ubuntu-latest]
node-version: [16.x, 18.x, 20.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: yarn clean
- name: Setup windows build tools
uses: microsoft/setup-msbuild@v1.1
if: ${{ runner.os == 'Windows' }}
- run: yarn install --frozen-lockfile
- run: yarn build:configure
- run: yarn build
- run: yarn test --silent