Fix warnings when generating, escape more chars when debug printing #24
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: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download Tree-sitter | |
run: .github/workflows/install-tree-sitter.sh v0.24.4 | |
- name: Install Crystal | |
uses: crystal-lang/install-crystal@v1 | |
with: | |
crystal: latest | |
- name: Run tree-sitter tests | |
run: tree-sitter test | |
- name: Run stdlib coverage | |
run: crystal run test/stdlib_coverage.cr | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download Tree-sitter | |
run: .github/workflows/install-tree-sitter.sh v0.24.4 | |
- name: Regenerate parser | |
run: tree-sitter generate | |
- name: Check for changes | |
run: git diff --stat --exit-code |