Skip to content

Move ert tests into separate file and run tests in CI. #768

Move ert tests into separate file and run tests in CI.

Move ert tests into separate file and run tests in CI. #768

Workflow file for this run

name: Emacs lint
on:
push:
paths:
- 'emacs/**'
- '**/emacs-lint.yml'
pull_request:
paths:
- 'emacs/**'
- '**/emacs-lint.yml'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 5.2.x
emacs_version:
- '27.2'
- '28.2'
- '29.3'
- snapshot
fail-fast: false # don't stop jobs if one fails
env:
EMACS_PACKAGE_LINT_IGNORE: ${{ matrix.package_lint_ignore }}
EMACS_BYTECOMP_WARN_IGNORE: ${{ matrix.bytecomp_warn_ignore }}
steps:
- uses: purcell/[email protected]
with:
version: ${{ matrix.emacs_version }}
- uses: actions/checkout@v4
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Install dependencies
run: |
opam pin menhirLib 20201216 --no-action
opam install --yes ppx_string ppx_compare
opam install . --deps-only --with-test --yes
- name: Build and install
run: |
opam install . --yes
- name: Run tests
run: 'cd emacs && opam exec -- ./check.sh'