-
Notifications
You must be signed in to change notification settings - Fork 8
101 lines (84 loc) · 2.51 KB
/
build.yml
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
# Copyright (C) 2019-2020 Serghei Iakovlev
#
# License
#
# This file is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This file is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this file; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
name: build
on:
push:
paths-ignore:
- '**.md'
- '**.txt'
pull_request:
branches:
- master
jobs:
build:
name: "GNU Emacs ${{ matrix.emacs_version }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
emacs_version:
- '24.3'
- '24.4'
- '24.5'
- '25.1'
- '25.2'
- '25.3'
- '26.1'
- '26.2'
- '26.3'
- snapshot
steps:
- name: Checkout Code
uses: actions/checkout@v2-beta
with:
fetch-depth: 5
- name: Setup GNU Emacs
uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- name: Setup Cask
run: curl -fsSkL https://raw.github.com/cask/cask/master/go | python
- name: Set Environment Variables
run: |
echo "::set-env name=PATH::$HOME/.cask/bin:$PATH"
if [ "${{ matrix.emacs_version }}" != "snapshot" ]; then
echo "::set-env name=UNDERCOVER_FORCE::1"
fi
- name: Fast Makefile Test
run: make help
- name: Initialize the Project
run: make init
- name: Byte Compile BNF Mode
run: make build
- name: Check for Errors in the Documentation
if: matrix.emacs_version >= '25.1'
run: make checkdoc
- name: Run Unit Tests
run: make test
- name: After Success Reporting
if: success()
run: git log --format=fuller -5
- name: Upload Code Coverage Report
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
yml: ./.codecov.yml
name: codecov-umbrella
flags: unittests
fail_ci_if_error: false