Skip to content

chore: bump version matrix #78

chore: bump version matrix

chore: bump version matrix #78

Workflow file for this run

name: Tests
on:
release:
types: [ published ]
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.x"
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout 3m
tests:
runs-on: ubuntu-latest
strategy:
matrix:
vaultVer: [ "latest", "1.16", "1.15", "1.14" ]
services:
vault:
image: docker.io/hashicorp/vault:${{ matrix.vaultVer }}
ports:
- 8200:8200
options: >-
--cap-add IPC_LOCK
env:
VAULT_DEV_ROOT_TOKEN_ID: testtoken
VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8200
VAULT_LOG_LEVEL: trace
steps:
- id: go-cache-paths
run: |
echo "go-build=$(go env GOCACHE)" >> $GITHUB_OUTPUT
echo "go-mod=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.x"
- name: Go Build Cache
uses: actions/cache@v3
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
- name: Go Mod Cache
uses: actions/cache@v3
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
- name: Run tests
run: make test