forked from myuhe/org-gcal.el
-
Notifications
You must be signed in to change notification settings - Fork 47
63 lines (50 loc) · 1.46 KB
/
main.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
name: Test
on: [push, pull_request, workflow_dispatch]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
emacs_version: ['26.1', '26.3', '27.2', '28.2', 'snapshot']
cask_version: ['snapshot']
steps:
- name: Checkout org-gcal repo
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
architecture: 'x64'
- name: Install Emacs
uses: purcell/setup-emacs@master
with:
version: ${{matrix.emacs_version}}
- uses: actions/cache@v2
id: cache-cask-packages
with:
path: .cask
key: cache-cask-packages-000
- uses: actions/cache@v2
id: cache-cask-executable
with:
path: ~/.cask
key: cache-cask-executable-000
- name: Install Cask
uses: cask/setup-cask@master
if: steps.cache-cask-executable.outputs.cache-hit != 'true'
with:
version: snapshot
- run: echo "$HOME/.cask/bin" >> $GITHUB_PATH
- name: Install dependencies
run: make elpa
- name: Compile
run: make compile
- name: Test
run: make test
- name: SSH into container on failure
if: ${{ failure() }}
uses: telotortium/action-upterm@wait-timeout-minutes
with:
## limits ssh access and adds the ssh public key for the user which triggered the workflow
limit-access-to-actor: true
wait-timeout-minutes: 2