mirror of https://github.com/spf13/viper.git
feat: enable finder tag builds
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
abbfd91119
commit
db5aafac4d
|
@ -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:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
//go:build !go1.16 || !finder
|
||||
// +build !go1.16 !finder
|
||||
//go:build !finder
|
||||
// +build !finder
|
||||
|
||||
package viper
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
//go:build go1.16 && finder
|
||||
// +build go1.16,finder
|
||||
//go:build finder
|
||||
// +build finder
|
||||
|
||||
package viper
|
||||
|
||||
|
|
Loading…
Reference in New Issue