-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 952 Bytes
/
test.yaml
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
name: GitHub CI
on:
push:
branches: [master]
paths-ignore:
- "*.md"
- "src/*"
- "LICENSE"
- ".gitignore"
pull_request:
branches: [master]
paths-ignore:
- "*.md"
- "src/*"
- "LICENSE"
- ".gitignore"
workflow_dispatch:
jobs:
test-on-ubuntu:
env:
PANDOC_VERSION: "3.1.13"
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: pandoc.deb
key: ${{ runner.os }}--${{ env.PANDOC_VERSION }}
- run: |
if ! [ -f pandoc.deb ]; then
printf '***** On %s. Downloading pandoc.deb\n' "$PWD"
curl -fsSLo pandoc.deb "https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-1-amd64.deb"
fi
sudo apt-get install -y ./pandoc.deb
- run: |
printf '***** On %s.\n' "$PWD"
make check