-
Notifications
You must be signed in to change notification settings - Fork 19
65 lines (63 loc) · 1.62 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: CI
on:
push:
paths-ignore:
- '**/*.md'
- 'etc/*'
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 3
strategy:
matrix:
emacs_version:
- "26.1"
- "26.3"
- "27.1"
- "27.2"
- "28.1"
- "28.2"
- "29.1"
- release-snapshot
- snapshot
include:
- emacs_version: snapshot
allow_failure: true
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.11'
architecture: 'x64'
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- uses: actions/cache@v3
id: cache-cask-packages
with:
path: .cask
key: cache-cask-packages-000
- uses: actions/cache@v3
id: cache-cask-executable
with:
path: ~/.cask
key: cache-cask-executable-000
- uses: cask/setup-cask@master
if: steps.cache-cask-executable.outputs.cache-hit != 'true'
with:
version: snapshot
- run: echo "$HOME/.cask/bin" >> $GITHUB_PATH
- uses: actions/checkout@v3
- name: Run tests
if: matrix.allow_failure != true
run: 'make test'
env:
COVERALLS_FLAG_NAME: Emacs ${{ matrix.emacs_version }}
COVERALLS_PARALLEL: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests (allow failure)
if: matrix.allow_failure == true
run: 'make test || true'
env:
COVERALLS_FLAG_NAME: Emacs ${{ matrix.emacs_version }}
COVERALLS_PARALLEL: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}