Skip to content

Commit

Permalink
ci: consolidate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Feb 15, 2024
1 parent 7e5d701 commit 2dfddfc
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 96 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI
on:
workflow_dispatch:
pull_request:
push:

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install
- run: npm test

test_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install
- run: npm run test-windows
32 changes: 0 additions & 32 deletions .github/workflows/linux.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/macos.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/windows.yml

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"build": "tree-sitter generate && node-gyp build",
"wasm": "tree-sitter generate --next-abi && tree-sitter build-wasm",
"generate": "tree-sitter generate",
"test": "tree-sitter test"
"test": "tree-sitter test",
"test-windows": "tree-sitter test"
},
"dependencies": {
"nan": "^2.15.0"
Expand Down

0 comments on commit 2dfddfc

Please sign in to comment.