Skip to content

fix ci

fix ci #614

Workflow file for this run

name: Test and coverage
on:
push:
paths:
- '**.go'
branches:
- master
pull_request:
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
vault-version: [1.13-ent, 1.14-ent, latest]
# max-parallel: 1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
- name: go get
run: go get ./...
- name: Run coverage
run: go test -v -race -coverprofile="coverage.out" -covermode=atomic ./...
env:
VAULT_VERSION: ${{ matrix.vault-version }}
VAULT_LICENSE: ${{ secrets.VAULT_LICENSE }}
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest'
run: bash <(curl -s https://codecov.io/bash)