Skip to content

Commit

Permalink
Merge pull request #125 from jrappen/feat/add-ci
Browse files Browse the repository at this point in the history
Add continuous-integration
  • Loading branch information
braver authored May 29, 2020
2 parents 3dd952e + e3420b7 commit 0032b7d
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitattributes
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
41 changes: 41 additions & 0 deletions .github/workflows/continuous-integration.yml
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

0 comments on commit 0032b7d

Please sign in to comment.