Skip to content

Simplify markdown punctuation scope #55

Simplify markdown punctuation scope

Simplify markdown punctuation scope #55

name: CI Syntax Tests
on:
push:
push:
- '**'
paths:
- '.github/workflows/ci-syntax-tests.yml'
- '**.sublime-syntax'
- '**/syntax_test_*'
- '**.tmPreferences'
pull_request:
branches:
- '**'
paths:
- '.github/workflows/ci-syntax-tests.yml'
- '**.sublime-syntax'
- '**/syntax_test_*'
- '**.tmPreferences'
workflow_dispatch:
jobs:
syntax_tests:
name: Sublime Text ${{ matrix.build }}
runs-on: ubuntu-latest
timeout-minutes: 15 # default is 6 hours!
strategy:
matrix:
include:
- build: 4134
default_packages: v4134
- build: 4148
default_packages: v4148
steps:
- name: Checkout Default Packages
uses: actions/checkout@v3
with:
repository: sublimehq/Packages
ref: ${{ matrix.default_packages }}
path: st_syntax_tests/Data/Packages
- name: Delete default package tests
run: |-
find st_syntax_tests/Data/Packages/*/ -type f -name 'syntax_test*' -exec rm -v '{}' \;
- name: Prepare dummy syntaxes
run: |-
packages=st_syntax_tests/Data/Packages
scopes=(
source.ada
source.akh
source.arduino
source.coffee
source.dart
source.shell.docker
source.elixir
source.shell.fish
source.graphql
text.http-request-response
source.ini
source.jade
source.julia
source.kotlin
source.less
source.mermaid
source.nim
source.powershell
source.proto
source.reason
source.sass
source.scheme
source.scss
source.stata
text.html.svelte
source.swift
source.json.terraform
source.toml
text.html.twig
source.verilog
source.xonsh
)
mkdir -vp "$packages/Default"
for scope in ${scopes[@]}; do
cat << SYNTAX > "$packages/Default/$scope.sublime-syntax"
%YAML 1.2
---
scope: $scope
contexts:
main: []
SYNTAX
done
- name: Checkout Liquid
uses: actions/checkout@v3
with:
path: st_syntax_tests/Data/Packages/Liquid
- name: Run Syntax Tests for Sublime Text ${{ matrix.build }}
run: |-
if [[ "${{ matrix.build }}" == "latest" ]]; then
wget -O st_syntax_tests.tar.xz https://download.sublimetext.com/latest/dev/linux/x64/syntax_tests
else
wget -O st_syntax_tests.tar.xz https://download.sublimetext.com/st_syntax_tests_build_${{ matrix.build }}_x64.tar.xz
fi
tar xf st_syntax_tests.tar.xz
cd st_syntax_tests
./syntax_tests