This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
ref: close handle only if active (#234) #1032
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
if: ${{ runner.os == 'Windows' }} | |
- run: yarn install --frozen-lockfile | |
- run: yarn build:configure | |
- run: yarn build | |
- run: yarn test --silent |