From 42efb15b27ecb3c660c2a5301da429916420ed8c Mon Sep 17 00:00:00 2001 From: Wanderson Ferreira Date: Sun, 10 Oct 2021 16:15:58 -0300 Subject: [PATCH 1/4] fix ci? --- .github/workflows/ci.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abe6697..c67eacc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,15 @@ name: CI - -on: [push] - +on : [push] jobs: build: - runs-on: [ubuntu-latest] + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Run CI in docker - run: docker run -v $(pwd):/opt silex/emacs:27.1-ci-cask bash -c "cd /opt && make ci" + - uses: actions/checkout@v1 + - uses: actions/setup-python@v2 + - uses: purcell/setup-emacs@master + with: + version: '27.1' + - uses: conao3/setup-cask@master + + - name: Run tests + run: make ci From 201079b0b1f4e5b1f8f0f0b8f3f295175c7dc924 Mon Sep 17 00:00:00 2001 From: Wanderson Ferreira Date: Sun, 10 Oct 2021 16:24:04 -0300 Subject: [PATCH 2/4] trigger on push or pull request events --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c67eacc..dd174e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ name: CI -on : [push] +on : [push, pull_request] jobs: build: runs-on: ubuntu-latest From f20757895a3256afd1c1220687014dc282e3397e Mon Sep 17 00:00:00 2001 From: Wanderson Ferreira Date: Sun, 10 Oct 2021 16:26:42 -0300 Subject: [PATCH 3/4] do not upgrade manually --- .github/workflows/ci.yml | 4 +++- makefile | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd174e8..e006fa6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,8 @@ jobs: with: version: '27.1' - uses: conao3/setup-cask@master + with: + version: 'snapshot' - name: Run tests - run: make ci + run: make test diff --git a/makefile b/makefile index 13db53c..d68ac22 100644 --- a/makefile +++ b/makefile @@ -1,8 +1,4 @@ .PHONY: ci local test -ci: - cask upgrade-cask - cask install - cask exec buttercup -L test/github-review-test.el test: cask exec buttercup -L test/github-review-test.el From 44e6de5f35eec8cbcaa596d374df91df87458f82 Mon Sep 17 00:00:00 2001 From: Wanderson Ferreira Date: Sun, 10 Oct 2021 16:32:07 -0300 Subject: [PATCH 4/4] cask install --- makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/makefile b/makefile index d68ac22..6fcdf55 100644 --- a/makefile +++ b/makefile @@ -1,6 +1,7 @@ .PHONY: ci local test test: + cask install cask exec buttercup -L test/github-review-test.el # Run the tests locally