diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abe6697..e006fa6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,17 @@ name: CI - -on: [push] - +on : [push, pull_request] 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 + with: + version: 'snapshot' + + - name: Run tests + run: make test diff --git a/makefile b/makefile index 13db53c..6fcdf55 100644 --- a/makefile +++ b/makefile @@ -1,10 +1,7 @@ .PHONY: ci local test -ci: - cask upgrade-cask - cask install - cask exec buttercup -L test/github-review-test.el test: + cask install cask exec buttercup -L test/github-review-test.el # Run the tests locally