Skip to content

Commit e6ff578

Browse files
committed
ci: add GitHub Actions workflows for test and lint
1 parent 826c11b commit e6ff578

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/lint.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
byte-compile:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: purcell/setup-emacs@master
16+
with:
17+
version: "29.4"
18+
- name: Byte-compile with warnings as errors
19+
run: make lint

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os:
16+
- macos-latest
17+
- ubuntu-latest
18+
emacs-version:
19+
- "29.4"
20+
- "snapshot"
21+
runs-on: ${{ matrix.os }}
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: purcell/setup-emacs@master
25+
with:
26+
version: ${{ matrix.emacs-version }}
27+
- name: Run tests
28+
run: make test

0 commit comments

Comments
 (0)