diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..35245b9 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,40 @@ +--- +name: build + +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize] + branches: + - 'master' + release: + types: [published] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + emacs_version: + - "24.5" + - "25.3" + - "26.3" + - "27.1" + experimental: [false] + include: + - emacs_version: snapshot + experimental: true + continue-on-error: ${{ matrix.experimental }} + steps: + - name: Checkout + uses: actions/checkout@v1 + with: + submodules: recursive + - name: Setup Emacs + uses: purcell/setup-emacs@master + with: + version: ${{ matrix.emacs_version }} + - name: Run tests + run: make check diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 797b06c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: nix - -env: - - EMACS_CI=emacs-24.5 - - EMACS_CI=emacs-25.3 - - EMACS_CI=emacs-26-3 - - EMACS_CI=emacs-snapshot - -install: - - bash <(curl https://raw.githubusercontent.com/purcell/nix-emacs-ci/master/travis-install) - - emacs --version - -script: make test diff --git a/README.md b/README.md index e6dcf50..6096926 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/10sr/with-venv-el.svg?branch=master)](https://travis-ci.org/10sr/with-venv-el) +[![build](https://github.com/10sr/with-venv-el/actions/workflows/build.yaml/badge.svg)](https://github.com/10sr/with-venv-el/actions/workflows/build.yaml) [![MELPA](https://melpa.org/packages/with-venv-badge.svg)](https://melpa.org/#/with-venv) [![MELPA Stable](https://stable.melpa.org/packages/with-venv-badge.svg)](https://stable.melpa.org/#/with-venv)