Skip to content

Commit 3669600

Browse files
ci: update workflows
Include a new workflow for GitHub releases
1 parent 05225cd commit 3669600

File tree

2 files changed

+34
-7
lines changed

2 files changed

+34
-7
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,25 @@ jobs:
3131
matrix:
3232
os: [ubuntu-latest, windows-latest, macos-14]
3333
steps:
34-
- name: Set up repository
35-
uses: tree-sitter/[email protected]
36-
with:
37-
node-version: 20
34+
- name: Clone repository
35+
uses: actions/checkout@v4
3836
- name: Clone nvim help files
3937
uses: actions/checkout@v4
4038
with:
4139
repository: neovim/neovim
4240
path: examples/neovim
4341
sparse-checkout: runtime/doc/
44-
- name: Run tests
42+
- name: Set up tree-sitter
43+
uses: tree-sitter/setup-action/cli@v1
44+
- name: Run parser tests
4545
uses: tree-sitter/parser-test-action@v2
4646
with:
47-
test-library: ${{runner.os == 'Linux'}}
48-
corpus-files: |-
47+
test-rust: ${{runner.os == 'Linux'}}
48+
- name: Parse sample files
49+
uses: tree-sitter/parse-action@v4
50+
id: parse-files
51+
with:
52+
files: |-
4953
examples/neovim/runtime/doc/*
5054
# FIXME: these files should not have errors
5155
invalid-files: |-
@@ -113,3 +117,9 @@ jobs:
113117
examples/neovim/runtime/doc/vim_diff.txt
114118
examples/neovim/runtime/doc/visual.txt
115119
examples/neovim/runtime/doc/windows.txt
120+
- name: Upload failures artifact
121+
uses: actions/upload-artifact@v4
122+
if: "!cancelled() && steps.parse-files.outcome == 'failure'"
123+
with:
124+
name: failures-${{runner.os}}
125+
path: ${{steps.parse-files.outputs.failures}}

.github/workflows/release.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Create release
2+
3+
on:
4+
push:
5+
tags: ["*"]
6+
7+
concurrency:
8+
group: ${{github.workflow}}-${{github.ref}}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: write
13+
id-token: write
14+
15+
jobs:
16+
release:
17+
uses: tree-sitter/workflows/.github/workflows/release.yml@main

0 commit comments

Comments
 (0)