Skip to content

Commit 81a1447

Browse files
authored
Merge pull request #47 from SublimeText/develop
CI: Make use of latest syntax-test-action features
2 parents c62e60b + 8925411 commit 81a1447

File tree

2 files changed

+9
-36
lines changed

2 files changed

+9
-36
lines changed

.github/workflows/ci-syntax-tests.yml

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -25,54 +25,27 @@ jobs:
2525
include:
2626
# Stable ST4 builds
2727
- build: 4126
28-
default_packages: v4126
28+
default_packages: binary
2929
- build: 4143
30-
default_packages: v4143
30+
default_packages: binary
3131
- build: 4152
32-
default_packages: v4152
32+
default_packages: binary
3333
- build: 4169
34-
default_packages: v4169
34+
default_packages: binary
3535
- build: 4180
36-
default_packages: v4180
37-
# Latest dev build
36+
default_packages: binary
37+
# Latest dev build (and latest available maybe unreleased syntaxes)
3838
- build: latest
3939
default_packages: master
4040
steps:
4141
- name: Checkout Vue
4242
uses: actions/checkout@v4
4343
with:
4444
path: Vue
45-
- name: Prepare dummy syntaxes
46-
run: |
47-
scopes=(
48-
source.coffee
49-
source.livescript
50-
source.less
51-
source.postcss
52-
source.sass
53-
source.scss
54-
source.sss
55-
source.stylus
56-
text.jade
57-
text.pug
58-
text.slm
59-
text.slim
60-
)
61-
mkdir -vp "Dummy"
62-
for scope in ${scopes[@]}; do
63-
cat << SYNTAX > "Dummy/$scope.sublime-syntax"
64-
%YAML 1.2
65-
---
66-
scope: $scope
67-
68-
contexts:
69-
main: []
70-
SYNTAX
71-
done
7245
- uses: SublimeText/syntax-test-action@v2
7346
with:
7447
build: ${{ matrix.build }}
7548
package_name: Vue
7649
package_root: Vue
7750
default_packages: ${{ matrix.default_packages }}
78-
additional_packages: Dummy
51+
dummy_syntaxes: source.coffee,source.livescript,source.less,source.postcss,source.sass,source.scss,source.sss,source.stylus,text.jade,text.pug,text.slm,text.slim

tests/syntax_test_script.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
// ^^^ entity.name.tag
4949
// ^ punctuation.definition.tag.end.js
5050
// ^^^^^^^^^^^^ meta.interpolation.js
51-
// ^ punctuation.definition.interpolation.begin.js
51+
// ^ punctuation.definition.interpolation.begin.js, punctuation.section.interpolation.begin.js
5252
// ^^^^^^^^^^ source.js.embedded.jsx
53-
// ^ punctuation.definition.interpolation.end.js
53+
// ^ punctuation.definition.interpolation.end.js, punctuation.section.interpolation.end.js
5454
// ^^^^^^ meta.tag
5555
// ^^ punctuation.definition.tag.begin.js
5656
// ^^^ entity.name.tag

0 commit comments

Comments
 (0)