Skip to content

test: added github workflow to run a test build and run the tests #1

test: added github workflow to run a test build and run the tests

test: added github workflow to run a test build and run the tests #1

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go: [ 1.20, 1.21 ]
os: [ ubuntu-latest ]
steps:
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Display Go version
run: go version
- name: Build
run: go build -v ./cmd/vault-plugin-secrets-gitlab
- name: Test
run: go test -cover -coverprofile=coverage.out -v
- name: Codecov
uses: codecov/codecov-action@v2
with:
files: ./coverage.out
flags: unittests