aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: ba9d9cb7d56d51ed061d4f08798dc3c9adba295c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: ci

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest
    continue-on-error: ${{ matrix.emacs_version == 'snapshot' }}

    strategy:
      fail-fast: false
      matrix:
        emacs_version:
          - '27.2'
          - 'snapshot'

    steps:
      - uses: actions/checkout@v2

      - uses: purcell/setup-emacs@master
        with:
          version: ${{ matrix.emacs_version }}

      - name: Run tests for scripts
        run: |
          ./bin/test/test.sh

      - name: Install Doom Emacs
        run: |
          git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
          ~/.emacs.d/bin/doom install --no-config --no-env --no-fonts
          ln -s $HOME/.doom.d $(realpath .doom.d)
          ~/.emacs.d/bin/doom sync

      - name: Check GNU Emacs
        run: |
          ~/.emacs.d/bin/doom doctor | grep "errors!"