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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
|
name: CI
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 2' # 00:00 every Tuesday
jobs:
# This "summary" job exists to simplify setting branch protection
# rules in the GitHub web UI. Without this, we'd have to specify all
# the jobs, including matrix "sub-jobs". Worse, their names change
# when version numbers change. Instead, the idea here is to create a
# single job whose status depends on those other jobs.
summary:
runs-on: ubuntu-latest
needs: [ubuntu, minimal, windows] # the jobs defined below
if: always()
steps:
- name: All tests passed
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Some tests failed
if: ${{ (contains(needs.*.result, 'failure')) }}
run: exit 1
ubuntu:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
emacs_version:
- '25.1' # our minimum supported version
- '26.3'
- '30.2' # most recent release
racket_version:
- '7.8' # our minimum supported version
- 'stable' # most recent release
# Also include bleeding edge builds of both Emacs and Racket.
# Might supply useful "early warning" -- but might just flag
# some temporary flaw in those builds, so enable
# continue-on-error.
include:
- emacs_version: 'snapshot'
racket_version: 'current'
continue-on-error: true
name: Ubuntu
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Emacs
uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- name: Install Racket
uses: Bogdanp/setup-racket@v1.11
with:
architecture: 'x64'
distribution: 'full'
version: ${{ matrix.racket_version }}
- name: Show versions
run: make show-versions
- name: Install Emacs Packages
run: make deps
- name: Compile Emacs Lisp
run: make compile
- name: Run Emacs Lisp Tests
run: make test-elisp
- name: Run Racket Tests
run: xvfb-run make test-racket
# The motivation for this job is to see if tests are likely to pass
# when run on headless servers such as Debian `buildd` with the
# Minimal Racket distriubtion (or equivalent), plus manually
# installing the Racket packages recommended in our documentation.
# The tests themselves should detect the absence of a display or a
# missing Racket package and skip. See *** in comments below.
minimal:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
emacs_version:
- '30.2' # most recent release
racket_version:
- 'stable' # most recent release
name: Minimal Racket
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Emacs
uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- name: Install Racket
uses: Bogdanp/setup-racket@v1.11
with:
architecture: 'x64'
distribution: 'minimal' # *** NOT 'full'
version: ${{ matrix.racket_version }}
- name: Install some non-Minimal Racket packages # ***
run: make minimal-racket-deps
- name: Show versions
run: make show-versions
- name: Install Emacs Packages
run: make deps
- name: Compile Emacs Lisp
run: make compile
- name: Run Emacs Lisp Tests
run: make test-elisp
- name: Run Racket Tests
run: make test-racket # *** do NOT use xvfb-run
windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
emacs_version:
- '30.2' # most recent release
racket_version:
- 'stable' # most recent release
name: Windows
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Emacs
uses: jcs090218/setup-emacs-windows@master
with:
version: ${{ matrix.emacs_version }}
- name: Install Racket
uses: Bogdanp/setup-racket@v1.11
with:
architecture: 'x64'
distribution: 'full'
version: ${{ matrix.racket_version }}
- name: Install Emacs Packages
run: make deps
- name: Compile Elisp
run: make compile
- name: Run Emacs Lisp Tests
run: make test-elisp
- name: Run Racket Tests
run: make test-racket
|