diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..a514991 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml new file mode 100644 index 0000000..2d68811 --- /dev/null +++ b/.github/workflows/continuous-integration.yml @@ -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