build: fixup CI scripts #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Emacs CI Testing | |
on: | |
push: | |
paths-ignore: ['**.md', '**.adoc'] | |
pull_request: | |
paths-ignore: ['**.md', '**.adoc'] | |
jobs: | |
test: | |
runs-on: ${{matrix.os}} | |
continue-on-error: ${{matrix.emacs_version == 'snapshot'}} | |
env: | |
ELDEV_ARGS: -dtTQC | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
emacs_version: ['24.4', '24.5', | |
'25.1', '25.2', '25.3', | |
'26.1', '26.2', '26.3', | |
'27.1', '27.2', | |
'28.1', '28.2', | |
'29.1', | |
'snapshot'] | |
include: | |
- os: macos-latest | |
emacs_version: '29.1' | |
- os: windows-latest | |
emacs_version: '29.1' | |
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: Lint the project | |
run: | | |
eldev $ELDEV_ARGS lint | |
- name: Test the project | |
run: | | |
eldev $ELDEV_ARGS -p --expect 10 | |
eldev $ELDEV_ARGS compile --warnings-as-errors | |
- name: Ensure that copyright notices are up-to-date | |
run: | | |
eldev $ELDEV_ARGS -p doctor up-to-date-copyright --all-tests |