Switch to gtest #1178
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
paths-ignore: | |
- '**.md' | |
- '**.org' | |
- '.dir-locals.el' | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.experimental }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
emacs-version: [28.2, 29.2] | |
experimental: [false] | |
include: | |
- os: ubuntu-latest | |
emacs-version: snapshot | |
experimental: true | |
steps: | |
- uses: purcell/setup-emacs@master | |
with: | |
version: ${{ matrix.emacs-version }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Cache ELPA packages | |
id: elpa-cache | |
uses: actions/cache@v2 | |
with: | |
path: elpa | |
key: ${{ matrix.os }}-${{ matrix.emacs-version }}-elpa-installed | |
- name: Download elpa packages | |
if: steps.elpa-cache.outputs.cache-hit != 'true' | |
run: | | |
emacs -nw --batch --eval \ | |
'(progn | |
(require (quote package)) | |
(require (quote url-vars)) | |
(let ((url-show-status nil) | |
(user-emacs-directory default-directory) | |
(package-user-dir (file-name-as-directory (expand-file-name "elpa" default-directory))) | |
(user-init-file (expand-file-name "init.el"))) | |
(load user-init-file t t) | |
(run-hooks (quote after-init-hook)) | |
(run-hooks (quote emacs-startup-hook))))' | |
- name: Check startup | |
run: | | |
emacs --version | |
echo "Attempting startup..." | |
emacs -nw --batch --eval \ | |
'(progn | |
(require (quote package)) | |
(require (quote url-vars)) | |
(let ((url-show-status nil) | |
(user-emacs-directory default-directory) | |
(package-user-dir (file-name-as-directory (expand-file-name "elpa" default-directory))) | |
(user-init-file (expand-file-name "init.el"))) | |
(package-initialize) | |
(load user-init-file t t) | |
(run-hooks (quote after-init-hook)) | |
(run-hooks (quote emacs-startup-hook))))' | |
echo "Startup successful" |