|
1 | 1 | name: CI
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - pull_request: |
5 |
| - branches: |
6 |
| - - '**' |
7 |
| - push: |
8 |
| - branches: |
9 |
| - - 'main' |
| 4 | + pull_request: |
| 5 | + branches: |
| 6 | + - '**' |
| 7 | + push: |
| 8 | + branches: |
| 9 | + - 'main' |
10 | 10 |
|
11 | 11 | concurrency:
|
12 |
| - group: ${{ github.workflow }}-${{ github.ref }} |
13 |
| - cancel-in-progress: true |
| 12 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 13 | + cancel-in-progress: true |
14 | 14 |
|
15 | 15 | jobs:
|
16 |
| - test: |
17 |
| - name: Run validation tests |
18 |
| - runs-on: ${{ matrix.os }} |
19 |
| - strategy: |
20 |
| - fail-fast: true |
21 |
| - matrix: |
22 |
| - os: [macos-latest, ubuntu-latest, windows-latest] |
23 |
| - steps: |
24 |
| - - name: Checkout repository |
25 |
| - uses: actions/checkout@v3 |
| 16 | + test: |
| 17 | + name: Run validation tests |
| 18 | + runs-on: ${{ matrix.os }} |
| 19 | + strategy: |
| 20 | + fail-fast: true |
| 21 | + matrix: |
| 22 | + os: [macos-latest, ubuntu-latest, windows-latest] |
| 23 | + steps: |
| 24 | + - name: Checkout repository |
| 25 | + uses: actions/checkout@v3 |
26 | 26 |
|
27 |
| - - name: Install Node.js |
28 |
| - uses: actions/setup-node@v3 |
29 |
| - with: |
30 |
| - node-version: 16 |
| 27 | + - name: Install Node.js |
| 28 | + uses: actions/setup-node@v3 |
| 29 | + with: |
| 30 | + node-version: 16 |
31 | 31 |
|
32 |
| - - name: Install dependencies |
33 |
| - run: npm install |
| 32 | + - name: Install dependencies |
| 33 | + run: npm install |
34 | 34 |
|
35 |
| - - name: Run tree-sitter tests |
36 |
| - run: npm test |
| 35 | + - name: Run tree-sitter tests |
| 36 | + run: npm test |
37 | 37 |
|
38 |
| - - name: Ensure generated parser files are up-to-date |
39 |
| - # On Windows, tree-sitter generate results in a diff, not sure why |
40 |
| - if: runner.os != 'Windows' |
41 |
| - run: | |
42 |
| - git status |
43 |
| - test -z "$(git status --porcelain)" |
| 38 | + - name: Ensure generated parser files are up-to-date |
| 39 | + # On Windows, tree-sitter generate results in a diff, not sure why |
| 40 | + if: runner.os != 'Windows' |
| 41 | + run: | |
| 42 | + git status |
| 43 | + test -z "$(git status --porcelain)" |
0 commit comments