mirror of https://github.com/Wilfred/difftastic/
38 lines
686 B
YAML
38 lines
686 B
YAML
name: Test full
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
- name: Npm install tree-sitter
|
|
run: |
|
|
npm i tree-sitter
|
|
- name: Tree-sitter build
|
|
run: |
|
|
npm run build
|
|
- name: Npm install/compile
|
|
run: |
|
|
npm install
|
|
- name: Unit tests
|
|
run: |
|
|
npm test
|