Skip to content

Commit

Permalink
ci: update main workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ObserverOfTime committed Oct 20, 2024
1 parent 2249c44 commit 81cb33b
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,25 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-14]
steps:
- name: Set up repository
uses: tree-sitter/[email protected]
with:
node-version: 20
- name: Clone repository
uses: actions/checkout@v4
- name: Clone nvim help files
uses: actions/checkout@v4
with:
repository: neovim/neovim
path: examples/neovim
sparse-checkout: runtime/doc/
- name: Run tests
- name: Set up tree-sitter
uses: tree-sitter/setup-action/cli@v1
- name: Run parser tests
uses: tree-sitter/parser-test-action@v2
with:
test-library: ${{runner.os == 'Linux'}}
corpus-files: |-
test-rust: ${{runner.os == 'Linux'}}
- name: Parse sample files
uses: tree-sitter/parse-action@v4
id: parse-files
with:
files: |-
examples/neovim/runtime/doc/*
# FIXME: these files should not have errors
invalid-files: |-
Expand Down Expand Up @@ -113,3 +117,9 @@ jobs:
examples/neovim/runtime/doc/vim_diff.txt
examples/neovim/runtime/doc/visual.txt
examples/neovim/runtime/doc/windows.txt
- name: Upload failures artifact
uses: actions/upload-artifact@v4
if: "!cancelled() && steps.parse-files.outcome == 'failure'"
with:
name: failures-${{runner.os}}
path: ${{steps.parse-files.outputs.failures}}

0 comments on commit 81cb33b

Please sign in to comment.