Skip to content

Commit

Permalink
Update CI (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
verhovsky authored Oct 22, 2022
1 parent 5e3ba81 commit a020ae0
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 51 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Test
name: Build/test
on:
push:
branches:
Expand All @@ -7,16 +7,29 @@ on:
branches:
- master
jobs:
build-and-test:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
fail-fast: false
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
with:
node-version: 14
submodules: true
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
- run: npm test
test_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install
- run: node_modules/.bin/tree-sitter test
- run: npm run-script test-windows
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
image: Visual Studio 2015

environment:
NODEJS_VERSION: "8"
NODEJS_VERSION: "16"
PREBUILD_UPLOAD:
secure: oNyyLE7/Oq3TUGZPz6DkLFPUuQzc8FiFS1iuPp7LZ2fyOP/UF4Np4NzJmWcXVyY/

Expand Down
13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@
"author": "Max Brunsfeld",
"license": "MIT",
"dependencies": {
"nan": "^2.14.0",
"prebuild-install": "^5.3.3"
"nan": "^2.17.0"
},
"devDependencies": {
"prebuild": "^10.0.0",
"tree-sitter-cli": "^0.19.1"
"tree-sitter-cli": "^0.20.7"
},
"scripts": {
"install": "prebuild-install || node-gyp rebuild",
"pre-build": "prebuild --all --strip --verbose",
"pre-build:upload": "prebuild --upload-all",
"test": "tree-sitter test && script/parse-examples.sh",
"build": "tree-sitter generate && node-gyp build",
"parse": "tree-sitter parse",
"test": "tree-sitter test && script/parse-examples",
"test-windows": "tree-sitter test"
},
"repository": "https://github.com/tree-sitter/tree-sitter-bash",
Expand Down
File renamed without changes.

0 comments on commit a020ae0

Please sign in to comment.