diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5a3ebde..899f6e0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,49 +1,29 @@ -name: CI +name: Syntax Tests + on: push: - branches: - - '*' - tags-ignore: - - '*' + paths: + - '**.sublime-syntax' + - '**/syntax_test*' + - '**.tmPreferences' pull_request: - branches: - - '*' + paths: + - '**.sublime-syntax' + - '**/syntax_test*' + - '**.tmPreferences' jobs: - build: - name: Run syntax_tests (${{ matrix.st.name }}) + syntax_tests: + name: Syntax Tests (${{ matrix.build }}) runs-on: ubuntu-latest + timeout-minutes: 15 # default is 6 hours! strategy: matrix: - st: - - name: Latest Sublime Text - url: https://download.sublimetext.com/latest/dev/linux/x64/syntax_tests - test_directory: st_syntax_tests - - name: Sublime Text 3 - url: https://download.sublimetext.com/st3_syntax_tests_build_3211_x64.tar.bz2 - test_directory: st3_syntax_tests + include: + - build: latest # Latest dev build + - build: 4169 # Oldest stable version we intent to support steps: - - uses: actions/checkout@master + - uses: actions/checkout@v3 + - uses: SublimeText/syntax-test-action@v2 with: - path: Terraform - - - name: Download syntax_tests - run: wget -O ${{ matrix.st.test_directory }}.tar.xz ${{ matrix.st.url }} - - - name: Extract syntax_tests - run: tar xf ${{ matrix.st.test_directory }}.tar.xz - - - name: Setup package directory - run: mkdir -p ./${{ matrix.st.test_directory }}/Data/Packages - - - name: Move package files to Packages dir - run: mv Terraform ./${{ matrix.st.test_directory }}/Data/Packages/ - - - name: Move syntax_tests - run: mv ${{ matrix.st.test_directory }}/* ./ - - - name: Cleanup syntax_tests archive - run: rm -R ${{ matrix.st.test_directory }} ${{ matrix.st.test_directory }}.tar.xz - - - name: Run syntax tests - run: ./syntax_tests + build: ${{ matrix.build }}