-
Notifications
You must be signed in to change notification settings - Fork 151
43 lines (35 loc) · 1019 Bytes
/
ubuntu.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
name: Ubuntu build & test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Install wkhtmltopdf
run: |
sudo apt-get install -y xfonts-base xfonts-75dpi
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb
sudo dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb
- name: Set up Go
uses: actions/[email protected]
with:
go-version: stable
- name: Build
run: go build -v .
- name: Test
run: go test -v -coverprofile=coverage.txt -covermode=atomic -bench .
- name: Upload artifacts
uses: actions/[email protected]
with:
name: TestPDFs
path: '**/*.pdf'
- name: CodeCov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.txt