name: CI

on:
  pull_request:
  push:

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        emacs_version:
          - "28.2"
          - "29.4"
          - "30.2"
          - "snapshot"
    steps:
    - uses: purcell/setup-emacs@master
      with:
        version: ${{ matrix.emacs_version }}

    - uses: actions/checkout@v6
    - name: Install dependencies
      run: sudo apt install pandoc aspell
    - name: Run tests
      run: |
        make clean
        make test
