diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2024-08-18 13:01:29 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2025-05-12 18:43:40 +0200 |
| commit | c5a8c9d01a12efbdee501d67dba7423b790fe500 (patch) | |
| tree | 8e5b6cd719cbf256a6e3d1db2293014bdfa603a7 /.github/workflows/test-generate.yml | |
| parent | feat(install): allow specifying max jobs (diff) | |
| download | nvim-treesitter-c5a8c9d01a12efbdee501d67dba7423b790fe500.tar nvim-treesitter-c5a8c9d01a12efbdee501d67dba7423b790fe500.tar.gz nvim-treesitter-c5a8c9d01a12efbdee501d67dba7423b790fe500.tar.bz2 nvim-treesitter-c5a8c9d01a12efbdee501d67dba7423b790fe500.tar.lz nvim-treesitter-c5a8c9d01a12efbdee501d67dba7423b790fe500.tar.xz nvim-treesitter-c5a8c9d01a12efbdee501d67dba7423b790fe500.tar.zst nvim-treesitter-c5a8c9d01a12efbdee501d67dba7423b790fe500.zip | |
ci(tests): add optional workflow for generating grammars
run on PR by adding label `ci:generate` or manually
Diffstat (limited to '.github/workflows/test-generate.yml')
| -rw-r--r-- | .github/workflows/test-generate.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/test-generate.yml b/.github/workflows/test-generate.yml new file mode 100644 index 000000000..ae2f7bd1f --- /dev/null +++ b/.github/workflows/test-generate.yml @@ -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" |
