Skip to content

Commit

Permalink
Update GitHub Actions setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gyndav committed Mar 8, 2024
1 parent 207d781 commit 742f367
Showing 1 changed file with 15 additions and 24 deletions.
39 changes: 15 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,34 @@ name: Test
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.15.x, 1.16.x]

services:
etc:
image: quay.io/coreos/etcd
etcd:
image: quay.io/coreos/etcd:v3
ports:
- 2379:2379
env:
ETCD_ADVERTISE_CLIENT_URLS: http://0.0.0.0:2379
ETCD_LISTEN_CLIENT_URLS: http://0.0.0.0:2379
consul:
image: consul
image: hashicorp/consul:1.18
ports:
- 8500:8500
vault096:
image: vault:0.9.6
vault:
image: hashicorp/vault:1.15
ports:
- 8200:8200
env:
VAULT_DEV_ROOT_TOKEN_ID: root
VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8200
vault010:
image: vault:0.10.0
ports:
- 8222:8200
env:
VAULT_DEV_ROOT_TOKEN_ID: root
VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8200

steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Test
run: make test
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
cache: true
check-latest: true
go-version-file: go.mod
- name: Test
run: make test

0 comments on commit 742f367

Please sign in to comment.