branch: scratch/el-mock commit 2b4e3acc4378c210394f532e010782ada772e16b Merge: 5df1d3a956 3a49f4c138 Author: Robert Irelan <rire...@gmail.com> Commit: GitHub <nore...@github.com>
Merge pull request #29 from telotortium/github-actions Add Github Actions --- .github/workflows/main.yml | 47 ++++++++++++++++++++++++++++++++++++++++++++++ .travis.yml | 14 -------------- README.md | 2 +- 3 files changed, 48 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..2c08ccce84 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,47 @@ +name: Test + +on: [push, pull_request, workflow_dispatch] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + emacs_version: ['24.4', '24.5', '25.1', '25.2', '26.1', '27.1', 'snapshot'] + cask_version: ['snapshot'] + + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Install Python + uses: actions/setup-python@v2 + with: + python-version: '3.6' + architecture: 'x64' + + - name: Install Emacs + uses: purcell/setup-emacs@master + with: + version: ${{matrix.emacs_version}} + + - name: Install Cask + uses: conao3/setup-cask@master + with: + version: 'snapshot' + + - name: Install dependencies + run: cask install + + - name: Test + run: make test + + - name: SSH into container on failure + if: ${{ false }} + # You can use this if statement to enable this during development. + #if: ${{ failure() }} + uses: lhotari/action-upterm@v1 + with: + ## limits ssh access and adds the ssh public key for the user which triggered the workflow + limit-access-to-actor: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 591b18f84b..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: generic -sudo: false -before_install: - - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh - - evm install $EVM_EMACS --use --skip - - cask -env: - - EVM_EMACS=emacs-24.4-travis - - EVM_EMACS=emacs-24.5-travis - - EVM_EMACS=emacs-25.1-travis - - EVM_EMACS=emacs-25.2-travis -script: - - emacs --version - - make test diff --git a/README.md b/README.md index 8d36e16ef0..c16c8b82b8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # El mock -[](https://travis-ci.org/rejeep/el-mock.el) +[](https://github.com/rejeep/el-mock.el/actions/workflows/main.yml) [](https://coveralls.io/r/rejeep/el-mock.el) [](http://melpa.org/#/el-mock) [](http://stable.melpa.org/#/el-mock)