Do not show console on each invokation #39
Workflow file for this run
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/checkout@v3 | |
- 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/setup-go@v3 | |
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/upload-artifact@v3 | |
with: | |
name: TestPDFs | |
path: '**/*.pdf' | |
- name: CodeCov | |
uses: codecov/codecov-action@v3 | |
with: | |
files: coverage.txt |