From 42862f345bff33bb0f1b0b69f68f04829f51c5d3 Mon Sep 17 00:00:00 2001 From: conao3 Date: Sun, 8 Dec 2019 10:46:06 +0900 Subject: [PATCH] Use github actions instead of travis --- .github/workflows/test.yml | 37 +++++++++++++++++++++++++++++++++++++ README.md | 2 +- readme-template.md | 2 +- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e2bea6f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +name: CI +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + emacs_version: + - '24.1' + - '24.2' + - '24.3' + - '24.4' + - '24.5' + - '25.1' + - '25.2' + - '25.3' + - '26.1' + - '26.2' + - '26.3' + - 'snapshot' + include: + - emacs_version: 'snapshot' + allow_failure: true + steps: + - uses: actions/checkout@v1 + - uses: purcell/setup-emacs@master + with: + version: ${{ matrix.emacs_version }} + + - name: Run tests + if: matrix.allow_failure != true + run: './run-tests.sh' + + - name: Run tests (allow failure) + if: matrix.allow_failure == true + run: './run-tests.sh || true' diff --git a/README.md b/README.md index 41af5be..b6e0dbb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# dash.el [![Build Status](https://secure.travis-ci.org/magnars/dash.el.png)](http://travis-ci.org/magnars/dash.el) +# dash.el ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/magnars/dash.el/CI) A modern list api for Emacs. No 'cl required. diff --git a/readme-template.md b/readme-template.md index 4d12809..4acba67 100644 --- a/readme-template.md +++ b/readme-template.md @@ -1,4 +1,4 @@ -# dash.el [![Build Status](https://secure.travis-ci.org/magnars/dash.el.png)](http://travis-ci.org/magnars/dash.el) +# dash.el ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/magnars/dash.el/CI) A modern list api for Emacs. No 'cl required.