Skip to content

Commit

Permalink
Merge pull request #8 from knry0329/feature/ci_multiversion_test
Browse files Browse the repository at this point in the history
add test go version 1.16.x and 1.17.x
  • Loading branch information
michaelklishin authored Aug 23, 2021
2 parents b2a427e + b5a0365 commit c428a61
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,26 @@ name: PR

on:
pull_request:
branches: [ main ]
branches: [main]

jobs:
tests:
name: tests
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.16.x, 1.17.x]
services:
rabbitmq:
image: rabbitmq
ports:
- 5672:5672
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Set up Go environment
uses: actions/setup-go@v2
- name: Tests
run: AMQP_URL=amqp://guest:guest@localhost:5672/ go test -cpu=1,2 -v -tags integration
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Set up Go environment
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Tests
run: AMQP_URL=amqp://guest:guest@localhost:5672/ go test -cpu=1,2 -v -tags integration
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: go

go:
- 1.17.x
- 1.16.x
- 1.15.x

addons:
apt:
Expand Down

0 comments on commit c428a61

Please sign in to comment.