File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Verifies that the bundled TextMate grammar can be used by GitHub's Linguist highlighter.
2+ name : Linguist Grammar check
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+ paths : ["syntaxes/hack.json", ".github/workflows/linguist.yml"]
11+
12+ permissions :
13+ contents : read
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Install PCRE development headers
20+ run : sudo apt update && sudo apt install -y libpcre3-dev
21+ - name : Checkout linguist repo
22+ uses : actions/checkout@v6
23+ with :
24+ repository : github-linguist/linguist
25+ path : linguist
26+ - uses : actions/setup-go@v6
27+ with :
28+ go-version-file : " linguist/tools/grammars/go.mod"
29+ - name : Checkout vscode-hack
30+ uses : actions/checkout@v6
31+ with :
32+ path : vscode-hack
33+ - name : Check Hack grammar
34+ run : cd linguist && go run ./tools/grammars/cmd/grammar-compiler add ../vscode-hack
You can’t perform that action at this time.
0 commit comments