-
Notifications
You must be signed in to change notification settings - Fork 32
70 lines (60 loc) · 1.69 KB
/
ci.yaml
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
66
67
68
69
70
name: CI
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "*" ]
jobs:
fast-tests:
runs-on: ubuntu-latest
environment: Continuous Integration
strategy:
matrix:
emacs_version:
# Add more lines like this if you want to test on different Emacs versions.
- 28.1
- 28.2
- 29.1
- 29.2
- 29.3
- 29.4
steps:
- name: Set up Emacs
uses: jcs090218/setup-emacs@master
with:
version: ${{matrix.emacs_version}}
- name: Install Eldev
uses: emacs-eldev/setup-eldev@v1
- name: Check out the source code
uses: actions/checkout@v4
- name: Byte-compile the project
run: |
eldev -dtT compile --warnings-as-errors
- name: Lint the project
run: |
eldev -p -dtT lint
- name: Test the project
# We don't set up the env variables so no integration tests will be run
run: |
eldev -p -dtT test
integration-tests:
runs-on: ubuntu-latest
environment: Continuous Integration
steps:
- name: Set up Emacs
uses: jcs090218/setup-emacs@master
with:
version: 29.4
- name: Install Eldev
uses: emacs-eldev/setup-eldev@v1
- name: Check out the source code
uses: actions/checkout@v4
- name: Test the project
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
ANTHROPIC_KEY: ${{ secrets.ANTHROPIC_KEY }}
# I can't seem to get Gemini to stop rate limiting me, temporarily disabling.
# GEMINI_KEY: ${{ secrets.GEMINI_KEY }}
run: |
eldev -p -dtT test