2020-09-05 10:16:15 +00:00
|
|
|
name: elisp tests
|
2020-08-30 05:00:45 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
|
|
|
|
env:
|
2020-09-02 03:08:23 +00:00
|
|
|
TEST_SCRIPT: ./.github/workflows/scripts/test
|
2020-09-05 10:24:49 +00:00
|
|
|
TESTELPA_REPO: JAremko/testelpa-develop
|
2020-09-05 11:25:08 +00:00
|
|
|
GITHUB_WORKSPACE: ${{ github.workspace }}
|
2021-06-30 17:32:39 +00:00
|
|
|
CORE_TR: core
|
|
|
|
BASE_TR: layers/+distribution/spacemacs-base
|
|
|
|
LAYER_TR: layers/+distribution/spacemacs
|
2020-08-30 23:27:56 +00:00
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
2020-08-30 05:00:45 +00:00
|
|
|
jobs:
|
2020-09-02 03:08:23 +00:00
|
|
|
test:
|
2020-08-30 05:00:45 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
2020-08-30 23:27:56 +00:00
|
|
|
fail-fast: false
|
2020-08-30 05:00:45 +00:00
|
|
|
matrix:
|
2020-08-30 23:27:56 +00:00
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
2020-09-03 05:06:13 +00:00
|
|
|
emacs_version: [26.3, 27.1, snapshot]
|
2020-08-30 05:00:45 +00:00
|
|
|
steps:
|
2021-04-05 03:15:21 +00:00
|
|
|
# Installing Emacs on Unix
|
2020-08-30 23:27:56 +00:00
|
|
|
- name: Install Emacs on UNIX
|
2021-04-05 03:15:21 +00:00
|
|
|
continue-on-error: true
|
|
|
|
id: unix-install-1
|
2020-08-30 23:27:56 +00:00
|
|
|
uses: purcell/setup-emacs@master
|
2020-08-30 05:00:45 +00:00
|
|
|
with:
|
|
|
|
version: ${{ matrix.emacs_version }}
|
2020-08-30 23:27:56 +00:00
|
|
|
if: ${{ matrix.os != 'windows-latest' }}
|
|
|
|
|
2021-04-05 03:15:21 +00:00
|
|
|
- name: Install Emacs on UNIX [retry 1]
|
|
|
|
continue-on-error: true
|
|
|
|
id: unix-install-2
|
|
|
|
uses: purcell/setup-emacs@master
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.emacs_version }}
|
|
|
|
if: ${{ matrix.os != 'windows-latest' && steps.unix-install-1.outcome == 'failure' }}
|
|
|
|
|
|
|
|
- name: Install Emacs on UNIX [retry 2]
|
|
|
|
continue-on-error: false
|
|
|
|
id: unix-install-3
|
|
|
|
uses: purcell/setup-emacs@master
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.emacs_version }}
|
|
|
|
if: ${{ matrix.os != 'windows-latest' && steps.unix-install-2.outcome == 'failure' }}
|
|
|
|
|
|
|
|
# Installing Emacs on Windows
|
2020-08-30 23:27:56 +00:00
|
|
|
- name: Install Emacs on Windows
|
2021-04-05 03:15:21 +00:00
|
|
|
continue-on-error: true
|
|
|
|
id: windows-install-1
|
2020-08-30 23:27:56 +00:00
|
|
|
uses: jcs090218/setup-emacs-windows@master
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.emacs_version }}
|
|
|
|
if: ${{ matrix.os == 'windows-latest' }}
|
|
|
|
|
2021-04-05 03:15:21 +00:00
|
|
|
- name: Install Emacs on Windows [retry 1]
|
|
|
|
continue-on-error: true
|
|
|
|
id: windows-install-2
|
|
|
|
uses: jcs090218/setup-emacs-windows@master
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.emacs_version }}
|
|
|
|
if: ${{ matrix.os == 'windows-latest' && steps.windows-install-1.outcome == 'failure' }}
|
|
|
|
|
|
|
|
- name: Install Emacs on Windows [retry 2]
|
|
|
|
continue-on-error: false
|
|
|
|
id: windows-install-3
|
|
|
|
uses: jcs090218/setup-emacs-windows@master
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.emacs_version }}
|
|
|
|
if: ${{ matrix.os == 'windows-latest' && steps.windows-install-2.outcome == 'failure' }}
|
|
|
|
# ---------------------------
|
|
|
|
|
2020-08-30 05:00:45 +00:00
|
|
|
- uses: actions/checkout@v2
|
2020-08-30 23:27:56 +00:00
|
|
|
|
2020-09-05 10:24:49 +00:00
|
|
|
- name: Fetch Spacemacs elpa mirror
|
|
|
|
run: |
|
|
|
|
curl -L \
|
|
|
|
https://github.com/$TESTELPA_REPO/releases/latest/download/elpa.zip \
|
2020-09-05 11:25:08 +00:00
|
|
|
--output /tmp/elpa.zip
|
2020-09-05 10:24:49 +00:00
|
|
|
|
|
|
|
- name: Unpack elpa mirror
|
2020-09-05 11:25:08 +00:00
|
|
|
run: unzip /tmp/elpa.zip -d ../testelpa_mirror
|
2020-09-05 10:24:49 +00:00
|
|
|
|
2021-06-30 17:32:39 +00:00
|
|
|
- name: Dependencies installation for core tests
|
|
|
|
run: ${{ env.TEST_SCRIPT }} ${{ env.CORE_TR }} installation
|
|
|
|
- name: Core unit testing
|
|
|
|
run: ${{ env.TEST_SCRIPT }} ${{ env.CORE_TR }} unit_tests
|
|
|
|
- name: Core functional testing
|
|
|
|
run: ${{ env.TEST_SCRIPT }} ${{ env.CORE_TR }} func_tests
|
|
|
|
|
|
|
|
- name: Dependencies installation for Base tests
|
|
|
|
run: ${{ env.TEST_SCRIPT }} ${{ env.BASE_TR }} installation
|
|
|
|
- name: Base unit testing
|
|
|
|
run: ${{ env.TEST_SCRIPT }} ${{ env.BASE_TR }} unit_tests
|
|
|
|
- name: Base functional testing
|
|
|
|
run: ${{ env.TEST_SCRIPT }} ${{ env.BASE_TR }} func_tests
|
|
|
|
|
|
|
|
- name: Dependencies installation for Layers tests
|
|
|
|
run: ${{ env.TEST_SCRIPT }} ${{ env.LAYER_TR }} installation
|
|
|
|
- name: Layers unit testing
|
|
|
|
run: ${{ env.TEST_SCRIPT }} ${{ env.LAYER_TR }} unit_tests
|
|
|
|
- name: Layers functional testing
|
|
|
|
run: ${{ env.TEST_SCRIPT }} ${{ env.LAYER_TR }} func_tests
|