spacemacs/.github/workflows/test.yml

50 lines
1.2 KiB
YAML
Raw Normal View History

2020-08-30 05:00:45 +00:00
name: emacs_test
on:
pull_request:
push:
branches:
- master
- develop
env:
2020-08-30 23:27:56 +00:00
SCRIPT: ./.github/workflows/scripts/test
defaults:
run:
shell: bash
2020-08-30 05:00:45 +00:00
jobs:
build:
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-08-30 23:20:15 +00:00
emacs_version: [25.3, 26.3, 27.1, snapshot]
2020-08-30 05:00:45 +00:00
test_root:
2020-08-30 23:27:56 +00:00
- core
- layers/+distribution/spacemacs-base
- layers/+distribution/spacemacs
2020-08-30 05:00:45 +00:00
steps:
2020-08-30 23:27:56 +00:00
- name: Install Emacs on UNIX
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' }}
- name: Install Emacs on Windows
uses: jcs090218/setup-emacs-windows@master
with:
version: ${{ matrix.emacs_version }}
if: ${{ matrix.os == 'windows-latest' }}
2020-08-30 05:00:45 +00:00
- uses: actions/checkout@v2
2020-08-30 23:27:56 +00:00
- name: Dependencies installation
run: ${{ env.SCRIPT }} ${{ matrix.test_root }} installation
- name: Unit testing
run: ${{ env.SCRIPT }} ${{ matrix.test_root }} unit_tests
- name: Functional testing
run: ${{ env.SCRIPT }} ${{ matrix.test_root }} func_tests