Skip to content

Commit a243f8b

Browse files
author
deathaxe
authored
Fix syntax test action (#190)
1. run action if action definition is updated 2. don't run if tag is created (assuming tags are created on master only anyway) 3. disable ST3 tests as v4+ requires ST4 due to `version 2` directive
1 parent a0caccf commit a243f8b

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/syntax.yml

+16-4
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,42 @@
11
name: Syntax Tests
22

33
on:
4+
45
push:
6+
branches:
7+
- '**'
8+
tags-ignore:
9+
- '**'
510
paths:
11+
- '.github/workflows/syntax.yml'
612
- '**.sublime-syntax'
713
- '**/syntax_test*'
814
- '**.tmPreferences'
915
pull_request:
1016
paths:
17+
- '.github/workflows/syntax.yml'
1118
- '**.sublime-syntax'
1219
- '**/syntax_test*'
1320
- '**.tmPreferences'
21+
types:
22+
- "opened"
23+
- "reopened"
24+
- "synchronize"
25+
workflow_dispatch:
1426

1527
jobs:
1628
main:
1729
name: Syntax Tests (${{ matrix.build }})
1830
strategy:
1931
matrix:
2032
include:
21-
- build: 3211
22-
packages: st3
23-
- build: 4102
33+
- build: 4107
34+
packages: v4107
35+
- build: latest
2436
packages: master
2537
runs-on: ubuntu-latest
2638
steps:
27-
- uses: actions/checkout@v2
39+
- uses: actions/checkout@v4
2840
- uses: SublimeText/syntax-test-action@v2
2941
with:
3042
build: ${{ matrix.build }}

0 commit comments

Comments
 (0)