diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 26a168e..79f942d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,14 +1,24 @@ -name: "Test" -on: - pull_request: - push: +name: "CI" + +on: [push, pull_request] + jobs: - tests: + build: runs-on: ubuntu-latest + strategy: + matrix: + emacs_version: + - 28.1 + - 28.2 + - release-snapshot + - snapshot steps: - - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v18 + - uses: purcell/setup-emacs@master with: - extra_nix_config: | - access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - run: nix flake check \ No newline at end of file + version: ${{ matrix.emacs_version }} + + - uses: actions/checkout@v3 + - name: Byte compile + run: nix --extra-experimental-features "nix-command flakes" develop -c eldev --unstable build + - name: Run tests + run: nix --extra-experimental-features "nix-command flakes" develop -c eldev --unstable test