Skip to content

chore: remove refs to deprecated io/ioutil #33

chore: remove refs to deprecated io/ioutil

chore: remove refs to deprecated io/ioutil #33

Workflow file for this run

name: Ubuntu build & test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
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