Update testing for latest adacore/gpr tests. #3
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: | |
push: | |
pull_request: | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
working-directory: tree-sitter-gpr | |
steps: | |
- name: Checkout (tree-sitter-gpr) | |
uses: actions/checkout@v3 | |
with: | |
path: tree-sitter-gpr | |
- name: Checkout (gpr) | |
uses: actions/checkout@v3 | |
with: | |
repository: adacore/gpr | |
path: gpr | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Install Module Dependencies | |
run: npm install | |
- name: Test Project (Corpus) | |
run: npm run test | |
# Initialize tree-sitter config to prevent nuisance message | |
# during tree-sitter parsing, when config doesn't exist. | |
- name: Create Tree-sitter Config | |
run: npx tree-sitter init-config | |
- name: Test Project (GPR) | |
run: npm run gpr-test |