mirror of
https://github.com/spf13/viper
synced 2024-12-22 11:37:02 +00:00
feat: enable finder tag builds
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
abbfd91119
commit
db5aafac4d
3 changed files with 7 additions and 6 deletions
5
.github/workflows/ci.yaml
vendored
5
.github/workflows/ci.yaml
vendored
|
@ -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 a new issue