Skip to content

Commit

Permalink
Test storage backends only when 'backend' build tag is set
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Apr 20, 2020
1 parent 9ffaa88 commit 8afed02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ jobs:
run: go build -v ./...

- name: Test
run: go test ./...
run: go test -v -tags ci ./...

- name: Storage Backend Tests
run: |
./admin/setup_minio_test_environment.sh
go test -v -tags "ci backend" ./storage
if: matrix.go-version == '1.14.x' && matrix.platform == 'ubuntu-latest'

- name: Coverage
env:
Expand Down
4 changes: 3 additions & 1 deletion storage/storage_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// +build backend

/*
* knoxite
* Copyright (c) 2016-2018, Christian Muehlhaeuser <muesli@gmail.com>
* Copyright (c) 2016-2020, Christian Muehlhaeuser <muesli@gmail.com>
*
* For license see LICENSE
*/
Expand Down

0 comments on commit 8afed02

Please sign in to comment.