-
Notifications
You must be signed in to change notification settings - Fork 53
49 lines (41 loc) · 1.37 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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