File tree 1 file changed +63
-0
lines changed
1 file changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : coder
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ pull_request :
9
+
10
+ workflow_dispatch :
11
+
12
+ permissions :
13
+ actions : none
14
+ checks : none
15
+ contents : read
16
+ deployments : none
17
+ issues : none
18
+ packages : none
19
+ pull-requests : none
20
+ repository-projects : none
21
+ security-events : none
22
+ statuses : none
23
+
24
+ # Cancel in-progress runs for pull requests when developers push
25
+ # additional changes
26
+ concurrency :
27
+ group : ${{ github.workflow }}-${{ github.ref }}
28
+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
29
+
30
+ jobs :
31
+ test-go :
32
+ name : " test/go (FreeBSD)"
33
+ runs-on : macos-12
34
+ timeout-minutes : 20
35
+ steps :
36
+ - uses : actions/checkout@v2
37
+ - name : test/go (FreeBSD)
38
+ id : test
39
+ uses : vmactions/freebsd-vm@v0
40
+ with :
41
+ envs : ' MYTOKEN MYTOKEN2'
42
+ usesh : true
43
+ prepare : |
44
+ pkg install -y terraform go119
45
+
46
+ run : |
47
+ pwd
48
+ ls -lah
49
+ whoami
50
+ env
51
+ freebsd-version
52
+
53
+ ln -s /usr/local/bin/go119 /usr/local/bin/go
54
+ setenv PATH ${PATH}:/root/go/bin
55
+
56
+ go version
57
+ terraform -version
58
+
59
+ go install gotest.tools/gotestsum@latest
60
+ gotestsum --version
61
+
62
+ setenv COVERAGE_FLAGS '-covermode=atomic -coverprofile="gotests.coverage" -coverpkg=./...'
63
+ gotestsum --junitfile="gotests.xml" --jsonfile="gotestsum.json" --packages="./..." --debug -- -parallel=8 -timeout=3m -short -failfast $COVERAGE_FLAGS
You can’t perform that action at this time.
0 commit comments