From b08ea52bf5166838deeac1aa45b9d91c1fd1c3d6 Mon Sep 17 00:00:00 2001 From: Johannes Rappen Date: Fri, 29 May 2020 04:24:11 +0200 Subject: [PATCH 1/3] feat: add continuous-integration to test against ST4073 --- .github/workflows/continuous-integration.yml | 41 ++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/continuous-integration.yml diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml new file mode 100644 index 0000000..a0f5dc7 --- /dev/null +++ b/.github/workflows/continuous-integration.yml @@ -0,0 +1,41 @@ +name: continuous-integration +on: + push: + branches: + - master + paths: + - 'Syntaxes/**.sublime-syntax' + pull_request: + paths: + - 'Syntaxes/**.sublime-syntax' + +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 From bfaf971eca2df1bf6dfe63ca6fc3823ec778344d Mon Sep 17 00:00:00 2001 From: Johannes Rappen Date: Fri, 29 May 2020 04:25:34 +0200 Subject: [PATCH 2/3] feat: slim down pkg shipped via PkgCtrl --- .gitattributes | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .gitattributes 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 From e3420b7fe3df230f740b74f4ed3e3d1d12d49765 Mon Sep 17 00:00:00 2001 From: Johannes Rappen Date: Fri, 29 May 2020 16:18:30 +0200 Subject: [PATCH 3/3] fix for comments on danro/LESS-sublime#125 --- .github/workflows/continuous-integration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index a0f5dc7..2d68811 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -1,13 +1,13 @@ name: continuous-integration on: push: - branches: - - master paths: - 'Syntaxes/**.sublime-syntax' + - 'Tests/*' pull_request: paths: - 'Syntaxes/**.sublime-syntax' + - 'Tests/*' jobs: build: