Replace Travis CI with Github Actions CI
This commit is contained in:
@@ -0,0 +1,30 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master, v1 ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master, v1 ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
test:
|
||||||
|
name: Test
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go-version: [1.18, 1.19]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Set up Go 1.x
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ${{ matrix.go-version }}
|
||||||
|
|
||||||
|
- name: Check out code into the Go module directory
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: go test -v -race ./...
|
||||||
-16
@@ -1,16 +0,0 @@
|
|||||||
language: go
|
|
||||||
|
|
||||||
go:
|
|
||||||
- 1.x
|
|
||||||
- tip
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- STRESS_TEST_DURATION=15s
|
|
||||||
|
|
||||||
script:
|
|
||||||
- go test -v -race
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
allow_failures:
|
|
||||||
- go: tip
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
[](https://godoc.org/github.com/jackc/puddle)
|
[](https://godoc.org/github.com/jackc/puddle)
|
||||||
[](https://travis-ci.org/jackc/puddle)
|

|
||||||
|
|
||||||
# Puddle
|
# Puddle
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user