Skip to content

Type error as pointer to const xmlError #20

Type error as pointer to const xmlError

Type error as pointer to const xmlError #20

Workflow file for this run

---
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)