Skip to content

Commit 2db6d5e

Browse files
authored
Merge pull request bastibe#172 from jcs-PR/ci/basic
ci: Add basic CI
2 parents de797e4 + b485ce5 commit 2db6d5e

File tree

4 files changed

+408
-317
lines changed

4 files changed

+408
-317
lines changed

.github/workflows/test.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
test:
16+
runs-on: ${{ matrix.os }}
17+
continue-on-error: ${{ matrix.experimental }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os: [ubuntu-latest, macos-latest, windows-latest]
22+
emacs-version:
23+
- 27.2
24+
- 28.2
25+
- 29.4
26+
- 30.1
27+
experimental: [false]
28+
include:
29+
- os: ubuntu-latest
30+
emacs-version: snapshot
31+
experimental: true
32+
- os: macos-latest
33+
emacs-version: snapshot
34+
experimental: true
35+
- os: windows-latest
36+
emacs-version: snapshot
37+
experimental: true
38+
exclude:
39+
- os: macos-latest
40+
emacs-version: 27.2
41+
42+
steps:
43+
- uses: actions/checkout@v4
44+
45+
- uses: jcs090218/setup-emacs@master
46+
with:
47+
version: ${{ matrix.emacs-version }}
48+
49+
- uses: emacs-eask/setup-eask@master
50+
with:
51+
version: 'snapshot'
52+
53+
- name: Run tests
54+
run: |
55+
eask package
56+
eask install
57+
eask compile

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
*.elc
22
/annotate-autoloads.el
33
/annotate-pkg.el
4+
5+
/.eask
6+
/dist

Eask

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
;; -*- mode: eask; lexical-binding: t -*-
2+
3+
(package "annotate"
4+
"2.4.1"
5+
"annotate files without changing them")
6+
7+
(website-url "https://github.com/bastibe/annotate.el")
8+
9+
(package-file "annotate.el")
10+
11+
(script "test" "echo \"Error: no test specified\" && exit 1")
12+
13+
(source 'gnu)
14+
15+
(depends-on "emacs" "27.1")
16+
17+
(add-hook 'eask-before-compile-hook
18+
(lambda ()
19+
(setq byte-compile-error-on-warn t)))

0 commit comments

Comments
 (0)