Skip to content

Commit 1ae9b9b

Browse files
authored
ci: add GitHub Action for Linguist Compilation Check (#134)
1 parent 35b473d commit 1ae9b9b

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/linguist.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This github action checks if the grammar(s) in this repo will compile with the latest version of linguist.
2+
3+
name: Linguist Compilation Check
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
10+
jobs:
11+
compile-check:
12+
runs-on: ubuntu-latest
13+
14+
defaults:
15+
run:
16+
working-directory: linguist
17+
18+
steps:
19+
- name: Clone linguist
20+
working-directory: ${{ github.workspace }}
21+
run: |
22+
git clone --depth 1 https://github.com/github-linguist/linguist.git
23+
cd linguist
24+
git submodule init
25+
26+
- name: Set up Ruby
27+
uses: ruby/setup-ruby@v1
28+
with:
29+
working-directory: linguist
30+
ruby-version: '3.3'
31+
bundler-cache: true
32+
33+
- name: Compile linguist grammar
34+
run: ./script/add-grammar --replace ${{ github.event.repository.name }} https://github.com/${{ github.repository }}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ _unreleased_
77
- Support snippets and language config for VB6 and WWB too ([GH-130][gh-130])
88
- docs: improve readme structure and add icons
99
- docs: add grammar structure overview
10+
- ci: ensure GitHub linguist can compile the grammars ([GH-134][gh-134])
1011
- build: restructure pnpm commands
1112
- build: reduce and update dependencies
1213

@@ -31,7 +32,9 @@ _2025-04-09_
3132
## Changes before 1.0.0
3233
_To [0.x changelog](docs/changelog_v0.md)_
3334

35+
3436
<!-- links -->
37+
[gh-134]: https://github.com/serkonda7/vscode-vba/pull/134
3538
[gh-130]: https://github.com/serkonda7/vscode-vba/pull/130
3639
[gh-129]: https://github.com/serkonda7/vscode-vba/pull/129
3740
[gh-128]: https://github.com/serkonda7/vscode-vba/pull/128

0 commit comments

Comments
 (0)