Skip to content

Bump golang.org/x/sys from 0.19.0 to 0.20.0 #186

Bump golang.org/x/sys from 0.19.0 to 0.20.0

Bump golang.org/x/sys from 0.19.0 to 0.20.0 #186

Workflow file for this run

name: test
on:
push:
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
- macos-13
- macos-12
- macos-11
- windows-2022
# TODO:
# fix: exit status 0xc0000139
# TempDir RemoveAll cleanup: CreateFile C:\Users\RUNNER~1\AppData\Local\Temp\TestRemoveno_race3228270686\001: Access is denied.
# - windows-2019
go:
- "1.22"
- "1.21"
- "1.20"
- "1.19"
- "1.18"
- "1.17"
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: test
run: |
go test --race ./...
# OpenBSD
openbsd:
runs-on: "ubuntu-22.04"
timeout-minutes: 30
name: "test (openbsd, 1.21)"
steps:
- uses: "actions/checkout@v4"
- name: "test (openbsd, 1.21)"
id: "openbsd"
uses: "vmactions/openbsd-vm@v1"
with:
prepare: pkg_add go
run: |
go version
useradd -mG wheel action
FSNOTIFY_BUFFER=4096 su action -c 'go test -parallel 1 -race ./...'
su action -c 'go test -parallel 1 -race ./...'
# NetBSD
netbsd:
runs-on: "ubuntu-22.04"
timeout-minutes: 30
name: test (netbsd, 1.21)
steps:
- uses: "actions/checkout@v4"
- name: "test (netbsd, 1.21)"
id: "netbsd"
uses: "vmactions/netbsd-vm@v1"
with:
prepare: pkg_add go
run: |
go121 version
useradd -mG wheel action
FSNOTIFY_BUFFER=4096 su action -c 'go121 test -parallel 1 -race ./...'
su action -c 'go121 test -parallel 1 -race ./...'
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: gofmt
run: |
test -z "$(gofmt -s -d . | tee /dev/stderr)"
- name: vet
run: |
go vet ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v5
continue-on-error: true
with:
version: latest