Skip to content

Commit 7567358

Browse files
committed
Add GitHub Actions workflow for syntax tests
1 parent 6b40003 commit 7567358

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/syntax.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Syntax Tests
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/workflows/syntax.yml'
7+
- '**.sublime-syntax'
8+
- '**/syntax_test*'
9+
- '**.tmPreferences'
10+
pull_request:
11+
paths:
12+
- '.github/workflows/syntax.yml'
13+
- '**.sublime-syntax'
14+
- '**/syntax_test*'
15+
- '**.tmPreferences'
16+
17+
jobs:
18+
main:
19+
name: Syntax Tests (${{ matrix.build }}, ${{ matrix.packages }})
20+
strategy:
21+
matrix:
22+
include:
23+
# latest dev build
24+
# This test must pass, the others are optional
25+
# due to changes in the Packages repo that affect our tests.
26+
- build: latest
27+
packages: v4129
28+
continue_on_error: false
29+
# last dev & Packages `master`
30+
- build: latest
31+
packages: master
32+
continue_on_error: true
33+
# latest stable build
34+
- build: 4126
35+
packages: v4126
36+
continue_on_error: true
37+
# earliest stable build supported by the current release branch
38+
- build: 4107
39+
packages: v4107
40+
continue_on_error: true
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: SublimeText/syntax-test-action@v2
45+
with:
46+
build: ${{ matrix.build }}
47+
default_packages: ${{ matrix.packages }}
48+
# On the step level, this does not cause the entire job to fail
49+
# and thus mark PRs as failing when only one of our tests failed.
50+
# See also https://github.com/github/feedback/discussions/15452.
51+
continue-on-error: ${{ matrix.continue_on_error }}

0 commit comments

Comments
 (0)