From 4ec26629b3835ea085301bb11bd2660b2f3bafca Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 27 Aug 2022 07:23:30 -0500 Subject: [PATCH] Replace Travis CI with Github Actions CI --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 16 ---------------- README.md | 2 +- 3 files changed, 31 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..cd49ef6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6335c4a..0000000 --- a/.travis.yml +++ /dev/null @@ -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 diff --git a/README.md b/README.md index 42da61f..fb7d288 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![](https://godoc.org/github.com/jackc/puddle?status.svg)](https://godoc.org/github.com/jackc/puddle) -[![Build Status](https://travis-ci.org/jackc/puddle.svg)](https://travis-ci.org/jackc/puddle) +![Build Status](https://github.com/jackc/puddle/actions/workflows/ci.yml/badge.svg) # Puddle