We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fc2ce4 commit 6c26b53Copy full SHA for 6c26b53
.github/workflows/libs_test.yml
@@ -60,6 +60,7 @@ jobs:
60
- name: Test
61
run: |
62
if [ "${{ steps.pr_check.outputs.is_external }}" = "true" ]; then
63
+ export IS_EXTERNAL_PR="true"
64
go test ./...
65
else
66
libs/license/license_test.go
@@ -5,10 +5,14 @@ package license
5
6
import (
7
"github.com/stretchr/testify/assert"
8
+ "os"
9
"testing"
10
)
11
12
func TestLicenseKeyChecker(t *testing.T) {
13
+ if os.Getenv("IS_EXTERNAL_PR") == "true" {
14
+ t.Skip("External PRs are not allowed to run license tests")
15
+ }
16
err := LicenseKeyChecker{}.Check()
17
assert.NoError(t, err)
18
}
0 commit comments