Merge pull request #60 from SublimeText/bugfix/hypenated-identifiers #28
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: CI | |
on: | |
push: | |
branches: | |
- '*' | |
tags-ignore: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
name: Run syntax_tests (${{ matrix.st.name }}) | |
runs-on: ubuntu-latest | |
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 | |
steps: | |
- uses: actions/checkout@master | |
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 |