mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 05:50:04 -04:00
ci(tests): add optional workflow for generating grammars
run on PR by adding label `ci:generate` or manually
This commit is contained in:
parent
83dae49a10
commit
c5a8c9d01a
6 changed files with 201 additions and 159 deletions
20
.github/workflows/test-generate.yml
vendored
Normal file
20
.github/workflows/test-generate.yml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
name: Generate from grammar
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [unlabeled, labeled, opened, synchronize, reopened]
|
||||
branches:
|
||||
- "main"
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
jobs:
|
||||
check_compilation:
|
||||
name: Build
|
||||
if: contains(github.event.pull_request.labels.*.name, 'ci:generate') || github.event_name == 'workflow_dispatch'
|
||||
uses: ./.github/workflows/test-core.yml
|
||||
with:
|
||||
type: "generate"
|
||||
Loading…
Add table
Add a link
Reference in a new issue