-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from jrappen/feat/add-ci
Add continuous-integration
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This file is used to slim down the size of the | ||
# Sublime Text package shipped via Package Control | ||
# by leveraging gitattributes | ||
|
||
|
||
* text eol=lf | ||
|
||
.github/ export-ignore | ||
Tests/ export-ignore | ||
|
||
.gitattributes export-ignore | ||
.gitignore export-ignore |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: continuous-integration | ||
on: | ||
push: | ||
paths: | ||
- 'Syntaxes/**.sublime-syntax' | ||
- 'Tests/*' | ||
pull_request: | ||
paths: | ||
- 'Syntaxes/**.sublime-syntax' | ||
- 'Tests/*' | ||
|
||
jobs: | ||
build: | ||
name: Run syntax_tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install OpenGL | ||
run: sudo apt-get -y install libgl1-mesa-glx libglu1-mesa | ||
- name: Download syntax_tests | ||
run: wget --content-disposition https://download.sublimetext.com/st_syntax_tests_build_4073_x64.tar.bz2 | ||
- name: Extract syntax_tests | ||
run: tar xf "$(ls st_syntax_tests_build_*_x64.tar.bz2)" | ||
- name: Move syntax_tests | ||
run: mv st_syntax_tests/syntax_tests ./ | ||
- name: Cleanup syntax_tests dir | ||
run: rm -R st_syntax_tests* | ||
- name: Cleanup git dir | ||
run: rm -R .git* | ||
- name: Setup 'Data/Packages/LESS' | ||
run: mkdir -p 'Data/Packages/LESS' | ||
- name: Move package into its own subdir within Data dir | ||
run: >- | ||
find . | ||
-maxdepth 1 | ||
-mindepth 1 | ||
-not -name 'Data' | ||
-not -name 'syntax_tests' | ||
-exec mv -v '{}' 'Data/Packages/LESS/' \; | ||
- name: Run syntax tests | ||
run: ./syntax_tests |