Skip to content

Update ubuntu.yml

Update ubuntu.yml #40

Workflow file for this run

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