branch: elpa/annotate commit fcab8a476ddbb1bfc0164ca7c3f5bebb49ca8ac1 Author: JenChieh <jcs090...@gmail.com> Commit: JenChieh <jcs090...@gmail.com>
ci: Add basic CI --- .github/workflows/test.yml | 60 ++++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 3 +++ Eask | 17 +++++++++++++ 3 files changed, 80 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000000..799d9fd580 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,60 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.experimental }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + emacs-version: + - 26.3 + - 27.2 + - 28.2 + - 29.4 + - 30.1 + experimental: [false] + include: + - os: ubuntu-latest + emacs-version: snapshot + experimental: true + - os: macos-latest + emacs-version: snapshot + experimental: true + - os: windows-latest + emacs-version: snapshot + experimental: true + exclude: + - os: macos-latest + emacs-version: 26.3 + - os: macos-latest + emacs-version: 27.2 + + steps: + - uses: actions/checkout@v4 + + - uses: jcs090218/setup-emacs@master + with: + version: ${{ matrix.emacs-version }} + + - uses: emacs-eask/setup-eask@master + with: + version: 'snapshot' + + - name: Run tests + run: | + eask package + eask install + eask compile diff --git a/.gitignore b/.gitignore index 56f0ec2487..38aed199fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ *.elc /annotate-autoloads.el /annotate-pkg.el + +/.eask +/dist diff --git a/Eask b/Eask new file mode 100644 index 0000000000..0097500f5c --- /dev/null +++ b/Eask @@ -0,0 +1,17 @@ +;; -*- mode: eask; lexical-binding: t -*- + +(package "annotate" + "2.4.1" + "annotate files without changing them") + +(website-url "https://github.com/bastibe/annotate.el") + +(package-file "annotate.el") + +(script "test" "echo \"Error: no test specified\" && exit 1") + +(source 'gnu) + +(add-hook 'eask-before-compile-hook + (lambda () + (setq byte-compile-error-on-warn t)))