File tree 2 files changed +30
-0
lines changed
2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,33 @@ permissions:
16
16
contents : read
17
17
18
18
jobs :
19
+ mutation :
20
+ runs-on : ubuntu-latest
21
+ name : Mutation
22
+ steps :
23
+ - name : Harden Runner
24
+ uses : step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
25
+ with :
26
+ disable-sudo : true
27
+ egress-policy : block # audit
28
+ allowed-endpoints : >
29
+ github.com:443
30
+
31
+ - name : Checkout Source
32
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
33
+ with :
34
+ fetch-depth : 0
35
+
36
+ - name : Install Go
37
+ uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
38
+ with :
39
+ go-version : ' >= 1.21'
40
+ cache : true
41
+
42
+ - name : Run mutation tests
43
+ run : |
44
+ cd ./corefunc && go test -tags=mutation -count=1 -parallel=$(nproc) -timeout 30s -ooze.v=true | grep -v "^[[:lower:]]" | grep -v "^)"
45
+
19
46
unit :
20
47
runs-on : ubuntu-latest
21
48
name : Unit
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ func ExampleEnvEnsure() {
49
49
fmt .Println (err )
50
50
// Output:
51
51
// <nil>
52
+ // <nil>
53
+ // <nil>
52
54
// environment variable MY_ENV_VAR_EMPTY is not defined
53
55
// environment variable MY_ENV_VAR_NOT_SET is not defined
54
56
}
@@ -75,6 +77,7 @@ func ExampleEnvEnsure_pattern() {
75
77
76
78
// Output:
77
79
// <nil>
80
+ // <nil>
78
81
// environment variable AWS_VAULT does not match pattern (non)?prod$
79
82
}
80
83
You can’t perform that action at this time.
0 commit comments