branch: elpa/anzu
commit 33e4f13429d28c9a349aa12a5e942b8ad23634f2
Author: Neil Okamoto <[email protected]>
Commit: Neil Okamoto <[email protected]>
migrate tests from circleci to github actions
---
.circleci/config.yml | 63 ----------------------------------------------
.github/workflows/test.yml | 36 ++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 63 deletions(-)
diff --git a/.circleci/config.yml b/.circleci/config.yml
deleted file mode 100644
index e0b1e42589..0000000000
--- a/.circleci/config.yml
+++ /dev/null
@@ -1,63 +0,0 @@
-version: 2.1
-
-# Default actions to perform on each Emacs version
-commands:
- default-steps:
- steps:
- - checkout
- - run: make version
- - run: make lint
- - run: make test
-
-# Enumerated list of Emacs versions
-jobs:
- test-emacs-25:
- docker:
- - image: silex/emacs:25-ci-cask
- entrypoint: bash
- steps:
- - default-steps
-
- test-emacs-26:
- docker:
- - image: silex/emacs:26-ci-cask
- entrypoint: bash
- steps:
- - default-steps
-
- test-emacs-27:
- docker:
- - image: silex/emacs:27-ci-cask
- entrypoint: bash
- steps:
- - default-steps
-
- test-emacs-master:
- docker:
- - image: silex/emacs:master-ci-cask
- entrypoint: bash
- steps:
- - default-steps
-
- # coverage:
- # docker:
- # - image: silex/emacs:26-ci-cask
- # entrypoint: bash
- # steps:
- # - checkout
- # - run: make submit-coverage
-
-# Executing in parallel
-workflows:
- ci-test-matrix:
- jobs:
- - test-emacs-25
- - test-emacs-26
- - test-emacs-27
- - test-emacs-master
- # - coverage:
- # requires:
- # - test-emacs-25
- # - test-emacs-26
- # - test-emacs-27
- # - test-emacs-master
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000000..830b7153ae
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,36 @@
+name: CI checks
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ build:
+ runs-on: ubuntu-20.04
+ strategy:
+ fail-fast: false
+ matrix:
+ emacs_version: [25.3, 26.3, 27.2]
+ allow_failure: [false]
+ include:
+ - emacs_version: snapshot
+ allow_failure: true
+ continue-on-error: ${{ matrix.allow_failure }}
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-python@v2
+ - uses: purcell/setup-emacs@master
+ with:
+ version: ${{ matrix.emacs_version }}
+ - uses: conao3/setup-cask@master
+
+ - name: Log Emacs version
+ run: 'make version'
+
+ - name: Run lint check
+ run: 'make lint'