-
-
Notifications
You must be signed in to change notification settings - Fork 33
38 lines (30 loc) · 975 Bytes
/
go_tests.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
name: Go Test
on:
push:
# only trigger on branches, not on tags
branches: '**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.22'
- name: Install Calibre
run: |
sudo apt-get update
sudo apt-get install -y calibre
- name: Ensure ebook-convert is in PATH
run: |
echo "$(dirname $(which ebook-convert)) is in PATH"
ebook-convert --version # This will fail if ebook-convert is not installed correctly
- name: Install ffmpeg
run: |
sudo apt-get install -y ffmpeg
# run with p 1 to prevent concurrent tests mutating the same file
# unfortunately we have to do this since ebook-convert requires tmp files and not stdin/stdout
- name: Run Go tests
run: go test ./... -p 1 -count=1