feat: enable finder tag builds

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2023-09-11 23:53:22 +02:00 committed by Márk Sági-Kazár
parent abbfd91119
commit db5aafac4d
3 changed files with 7 additions and 6 deletions

View File

@ -45,6 +45,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: ['1.19', '1.20', '1.21']
tags: ['', 'finder']
steps:
- name: Checkout repository
@ -56,11 +57,11 @@ jobs:
go-version: ${{ matrix.go }}
- name: Test
run: go test -race -v ./...
run: go test -race -v -tags '${{ matrix.tags }}' ./...
if: runner.os != 'Windows'
- name: Test (without race detector)
run: go test -v ./...
run: go test -v -tags '${{ matrix.tags }}' ./...
if: runner.os == 'Windows'
lint:

View File

@ -1,5 +1,5 @@
//go:build !go1.16 || !finder
// +build !go1.16 !finder
//go:build !finder
// +build !finder
package viper

View File

@ -1,5 +1,5 @@
//go:build go1.16 && finder
// +build go1.16,finder
//go:build finder
// +build finder
package viper