Migrate CI to GitHub Actions

This commit is contained in:
Yuji Yaginuma
2023-09-22 10:07:34 +09:00
parent cfcd7d097b
commit 0ca5d04e6d
2 changed files with 33 additions and 16 deletions
+33
View File
@@ -0,0 +1,33 @@
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
strategy:
matrix:
go-version: ["1.19", "1.20", "1.21"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- run: go test ./...
lint:
strategy:
matrix:
go-version: ["1.21"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- run: diff -u <(echo -n) <(gofmt -s -d ./)
- run: diff -u <(echo -n) <(go vet ./...)
-16
View File
@@ -1,16 +0,0 @@
language: go
arch:
- AMD64
- ppc64le
go:
- "1.13"
- "1.14"
before_install:
- go get -u -v golang.org/x/lint/golint
script:
- diff -u <(echo -n) <(gofmt -s -d ./)
- diff -u <(echo -n) <(go vet ./...)
- diff -u <(echo -n) <(golint)
- go test -v -race ./...