CI Tests #311
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: CI Tests | |
on: | |
pull_request: | |
paths-ignore: | |
- '**.md' | |
- '.gitignore' | |
push: | |
paths-ignore: | |
- '**.md' | |
- '.gitignore' | |
schedule: | |
- cron: '42 7 * * SUN,MON,WED,FRI,SAT' | |
jobs: | |
ci-tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
emacs_version: | |
- 28.1 | |
- 28.2 | |
- 29.1 | |
- 29.2 | |
- 29.3 | |
- 29.4 | |
- snapshot | |
exclude: | |
- os: macos-latest | |
emacs_version: 28.1 | |
- os: macos-latest | |
emacs_version: 29.1 | |
- os: macos-latest | |
emacs_version: 29.2 | |
- os: macos-latest | |
emacs_version: 29.3 | |
steps: | |
- uses: purcell/setup-emacs@master | |
with: | |
version: ${{ matrix.emacs_version }} | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
id: cache-cask-packages | |
with: | |
path: .cask | |
key: cache-cask-packages-000 | |
- uses: cask/setup-cask@master | |
if: steps.cache-cask-executable.outputs.cache-hit != 'true' | |
with: | |
version: snapshot | |
- name: Install dependencies | |
run: 'cask install' | |
- name: Byte compile | |
run: 'make compile' | |
- name: Lint package | |
run: 'make lint' | |
- name: Run tests | |
run: 'make test' | |
- name: Coveralls parallel | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
flag-name: ${{ join(matrix.*, '-emacs-') }} | |
parallel: true | |
finish: | |
needs: ci-tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls finished | |
uses: coverallsapp/github-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
parallel-finished: true |