File tree 2 files changed +17
-34
lines changed
2 files changed +17
-34
lines changed Original file line number Diff line number Diff line change @@ -16,38 +16,17 @@ permissions:
16
16
contents : read
17
17
18
18
jobs :
19
- examples :
20
- runs-on : ubuntu-latest
21
- name : Examples
22
- steps :
23
- - name : Harden Runner
24
- uses : step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
25
- with :
26
- egress-policy : audit
27
-
28
- - name : Checkout Source
29
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
30
- with :
31
- fetch-depth : 0
32
-
33
- - name : Install Go
34
- uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
35
- with :
36
- go-version : ' >= 1.21'
37
- cache : true
38
-
39
- - name : Run example tests
40
- run : |
41
- make examples
42
-
43
19
unit :
44
20
runs-on : ubuntu-latest
45
21
name : Unit
46
22
steps :
47
23
- name : Harden Runner
48
24
uses : step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
49
25
with :
50
- egress-policy : audit
26
+ disable-sudo : true
27
+ egress-policy : block # audit
28
+ allowed-endpoints : >
29
+ github.com:443
51
30
52
31
- name : Checkout Source
53
32
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
62
41
63
42
- name : Run unit tests
64
43
run : |
65
- make unit
44
+ go test -count=1 -parallel=$(nproc) -timeout 30s -v ./corefunc/...
66
45
67
46
acc :
68
47
runs-on : ubuntu-latest
83
62
- name : Harden Runner
84
63
uses : step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
85
64
with :
86
- egress-policy : audit
65
+ disable-sudo : true
66
+ egress-policy : block # audit
67
+ allowed-endpoints : >
68
+ github.com:443
69
+ releases.hashicorp.com:443
87
70
88
71
- name : Checkout Source
89
72
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
104
87
105
88
- name : Run acceptance tests
106
89
run : |
107
- make acc
90
+ TF_ACC=1 go test -run=TestAcc -count=1 -parallel=$(nproc) -timeout 30m -v ./corefuncprovider/...
Original file line number Diff line number Diff line change @@ -97,12 +97,12 @@ repos:
97
97
language : system
98
98
stages : [commit, push]
99
99
100
- - id : actionlint
101
- name : Actionlint
102
- description : Lint GitHub Actions workflows
103
- entry : bash -c 'actionlint'
104
- language : system
105
- stages : [commit, push]
100
+ # - id: actionlint
101
+ # name: Actionlint
102
+ # description: Lint GitHub Actions workflows
103
+ # entry: bash -c 'actionlint'
104
+ # language: system
105
+ # stages: [commit, push]
106
106
107
107
- id : unconvert
108
108
name : ' Go: unconvert (current GOOS/GOARCH)'
You can’t perform that action at this time.
0 commit comments