Merge branch 'st4107' #78
This file contains hidden or 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: CI Syntax Tests | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| - 'st4107' | |
| tags-ignore: | |
| - '**' | |
| paths: | |
| - '.github/workflows/ci-syntax-tests.yml' | |
| - '**.sublime-syntax' | |
| - '**/syntax_test_*' | |
| - '**.tmPreferences' | |
| pull_request: | |
| 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: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # first supported ST build | |
| - build: 4149 | |
| # Stable ST4 builds | |
| - build: 4152 | |
| default_packages: v4152 | |
| - build: 4169 | |
| default_packages: v4169 | |
| - build: 4180 | |
| default_packages: v4180 | |
| # Latest dev build | |
| - build: latest | |
| default_packages: master | |
| steps: | |
| - name: Checkout Default Packages | |
| uses: actions/checkout@v4 | |
| 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: Checkout Less | |
| uses: actions/checkout@v4 | |
| with: | |
| path: st_syntax_tests/Data/Packages/Less | |
| - 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 |