Adding upstream version 0.0~git20231022.c6c9f9a.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
dc12642887
commit
0e47c428eb
9 changed files with 585 additions and 0 deletions
36
.github/workflows/main.yml
vendored
Normal file
36
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
on: [push, pull_request]
|
||||
name: Test
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.18.x, 1.x]
|
||||
os: [ubuntu-latest]
|
||||
arch: ["", "386"]
|
||||
fail-fast: false
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Check formatting
|
||||
run: diff -u <(echo -n) <(gofmt -d .)
|
||||
if: runner.os != 'Windows'
|
||||
- name: Run go vet
|
||||
env:
|
||||
GOARCH: ${{ matrix.arch }}
|
||||
run: go vet ./...
|
||||
- name: Run staticcheck
|
||||
uses: dominikh/staticcheck-action@v1.3.0
|
||||
with:
|
||||
version: "2023.1.6"
|
||||
install-go: false
|
||||
cache-key: ${{ matrix.go-version }}
|
||||
if: ${{ matrix.go-version == '1.x' }}
|
||||
- name: Run tests
|
||||
env:
|
||||
GOARCH: ${{ matrix.arch }}
|
||||
run: go test -vet=off ./...
|
Loading…
Add table
Add a link
Reference in a new issue