Type error as pointer to const xmlError #20
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: Go | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1 | |
- name: Install Linux deps | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install --no-install-recommends \ | |
libxml2-dev libxslt1-dev liblzma-dev zlib1g-dev | |
- name: Install macOS deps | |
if: runner.os == 'macOS' | |
run: brew install libxml2 libxslt | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test -v -coverprofile=coverage.txt -covermode=atomic -race ./... | |
- name: Coverage | |
if: runner.os == 'Linux' | |
run: bash <(curl -s https://codecov.io/bash) |