Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
Added build tag for unit tests and GitHub action (#77)
Browse files Browse the repository at this point in the history
* Added build tag for unit tests

Signed-off-by: Paolo Patierno <[email protected]>

* Added unit tests GitHub action workflow

Signed-off-by: Paolo Patierno <[email protected]>

* Moved unit tests run in the acceptance workflow
Deleted unit tests GitHub action workflow

Signed-off-by: Paolo Patierno <[email protected]>
  • Loading branch information
ppatierno authored Aug 27, 2021
1 parent 26093d4 commit 3e21f06
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Unit tests
run: |
go test ./internal/... --tags=unit_test
- name: Test
- name: E2E tests
run: |
go test ./test/... --tags=e2e
2 changes: 2 additions & 0 deletions internal/config/canary_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
//

// +build unit_test

// Package config defining the canary configuration parameters
package config

Expand Down
2 changes: 2 additions & 0 deletions internal/security/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
//

// +build unit_test

// Package security defining some security related tools
package security

Expand Down
2 changes: 2 additions & 0 deletions internal/services/backoff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
//

// +build unit_test

// Package services defines an interface for canary services and related implementations
package services

Expand Down
2 changes: 2 additions & 0 deletions internal/services/canary_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
//

// +build unit_test

// Package services defines an interface for canary services and related implementations
package services

Expand Down

0 comments on commit 3e21f06

Please sign in to comment.