[Chore] Correct badge URLS and update copyright years. #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: syntax_test | |
on: | |
push: | |
branches: | |
- '*' | |
tags-ignore: | |
- '*' | |
paths: | |
- '**/syntax_test_*' | |
- '**/*.hidden-tmLanguage' | |
- '**/*.sublime-syntax' | |
- '**/*.tmLanguage' | |
- '**/*.tmPreferences' | |
- '.github/workflows/syntax_test.yml' | |
pull_request: | |
branches: | |
- '*' | |
paths: | |
- '**/syntax_test_*' | |
- '**/*.hidden-tmLanguage' | |
- '**/*.sublime-syntax' | |
- '**/*.tmLanguage' | |
- '**/*.tmPreferences' | |
- '.github/workflows/syntax_test.yml' | |
workflow_dispatch: | |
jobs: | |
run_syntax_tests: | |
name: Test on Build ${{ matrix.sublime-build }} (${{ matrix.sublime-channel }}) | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
continue-on-error: ${{ matrix.optional }} | |
strategy: | |
max-parallel: 2 | |
fail-fast: false | |
matrix: | |
include: | |
- sublime-channel: stable | |
sublime-build: 4126 | |
optional: false | |
- sublime-channel: dev | |
sublime-build: 4131 | |
optional: false | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@master | |
- name: Get binary for Build ${{ matrix.sublime-build }} (${{ matrix.sublime-channel }}) | |
run: | | |
wget -O st_syntax_tests.tar.xz https://download.sublimetext.com/st_syntax_tests_build_${{ matrix.sublime-build }}_x64.tar.xz | |
tar xf st_syntax_tests.tar.xz | |
mv st_syntax_tests/* ./ | |
rm -R st_syntax_tests st_syntax_tests.tar.xz | |
- name: Move root dirs & files into "Data/Packages/PyScript" subdir (except for syntax_tests) | |
run: | | |
mkdir -p Data/Packages/PyScript | |
find . -maxdepth 1 -mindepth 1 -not -name 'Data' \! -name 'syntax_tests' -exec mv '{}' Data/Packages/PyScript ';' | |
- name: Download HTML & other extending syntaxes and move it to Data/Packages | |
run: | | |
wget -O HTML.sublime-syntax https://raw.githubusercontent.com/sublimehq/Packages/master/HTML/HTML.sublime-syntax | |
wget -O 'HTML (Plain).sublime-syntax' 'https://raw.githubusercontent.com/sublimehq/Packages/master/HTML/HTML%20(Plain).sublime-syntax' | |
wget -O CSS.sublime-syntax https://raw.githubusercontent.com/sublimehq/Packages/master/CSS/CSS.sublime-syntax | |
wget -O JavaScript.sublime-syntax https://raw.githubusercontent.com/sublimehq/Packages/master/JavaScript/JavaScript.sublime-syntax | |
wget -O Python.sublime-syntax https://raw.githubusercontent.com/sublimehq/Packages/master/Python/Python.sublime-syntax | |
wget -O 'RegExp (Python).sublime-syntax' 'https://raw.githubusercontent.com/sublimehq/Packages/master/Python/RegExp (Python).sublime-syntax' | |
wget -O 'RegExp (Basic).sublime-syntax' 'https://raw.githubusercontent.com/sublimehq/Packages/master/Regular%20Expressions/RegExp%20(Basic).sublime-syntax' | |
wget -O SQL.sublime-syntax https://raw.githubusercontent.com/sublimehq/Packages/master/SQL/SQL.sublime-syntax | |
mkdir -p Data/Packages/HTML | |
mkdir -p Data/Packages/CSS | |
mkdir -p Data/Packages/JavaScript | |
mkdir -p Data/Packages/Python | |
mkdir -p Data/Packages/SQL | |
mkdir -p 'Data/Packages/Regular Expressions' | |
mv HTML.sublime-syntax ./Data/Packages/HTML | |
mv 'HTML (Plain).sublime-syntax' ./Data/Packages/HTML | |
mv CSS.sublime-syntax ./Data/Packages/CSS | |
mv JavaScript.sublime-syntax ./Data/Packages/JavaScript | |
mv Python.sublime-syntax ./Data/Packages/Python | |
mv 'RegExp (Basic).sublime-syntax' './Data/Packages/Regular Expressions' | |
mv 'RegExp (Python).sublime-syntax' ./Data/Packages/Python | |
mv SQL.sublime-syntax ./Data/Packages/SQL | |
- name: Run syntax tests | |
run: ./syntax_tests |