Update ubuntu.yml #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |