Skip to content

Bump golang.org/x/tools from 0.1.12 to 0.16.0 #170

Bump golang.org/x/tools from 0.1.12 to 0.16.0

Bump golang.org/x/tools from 0.1.12 to 0.16.0 #170

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# allow manual execution from the web interface
workflow_dispatch:
jobs:
test:
strategy:
matrix:
os: ['ubuntu-18.04', 'ubuntu-20.04', 'ubuntu-22.04']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2 # respository path: $GITHUB_WORKSPACE
- uses: actions/setup-go@v2
with:
go-version: 1.16.2
- name: Install golint
run: go get -u golang.org/x/lint/golint
- name: Install goyacc
run: go get golang.org/x/tools/cmd/goyacc
- name: Install libvirt
run: |
sudo apt-get update
sudo apt-get -qqy install libvirt-daemon-system
- name: Stop libvirtd
run: sudo systemctl stop libvirtd
- name: Start libvirtd with custom config
run: sudo libvirtd -d -l -f $GITHUB_WORKSPACE/.github/workflows/libvirtd.conf
- name: Setup test artifacts
env:
TESTDATA: ${{ github.workspace }}/testdata
run: |
go get -d ./...
sudo qemu-img create -f raw -o size=10M /var/lib/libvirt/images/test.raw
sudo virsh define $TESTDATA/test-domain.xml
sudo virsh start test
sudo virsh pool-create $TESTDATA/test-pool.xml
sudo virsh secret-define $TESTDATA/test-secret.xml
- name: Lint and Vet
run: |
golint -set_exit_status ./...
go vet ./...
- name: Unit test
run: go test -race ./...
- name: integration test
run: sudo go test -race -tags=integration ./...
- name: Build
run: go build ./...