Update documentation #112
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: ['1.18', '1.19'] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
include: | |
- os: ubuntu-latest | |
prepare: | | |
sudo apt-get update | |
sudo apt-get install libudev-dev libusb-1.0-0-dev | |
tags: libusb | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
if: ${{ matrix.prepare }} | |
run: ${{ matrix.prepare }} | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Run tests | |
run: go test ./... | |
- name: Run tagged tests | |
if: ${{ matrix.tags }} | |
run: go test -tags ${{ matrix.tags }} ./... | |
test-freebsd: | |
runs-on: macos-12 | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: ['1.18', '1.19'] | |
include: | |
- go-version: '1.18' | |
go-pkg: go118 | |
- go-version: '1.19' | |
go-pkg: go119 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: vmactions/freebsd-vm@v0 | |
with: | |
copyback: false | |
release: '13.1' | |
prepare: | | |
pkg install -y ${{ matrix.go-pkg }} libiconv | |
run: | | |
${{ matrix.go-pkg }} test ./... |