File tree 1 file changed +62
-0
lines changed
1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : coder (FreeBSD)
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"
33
+ runs-on : macos-12
34
+ timeout-minutes : 60
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
+ whoami
49
+ env
50
+ freebsd-version
51
+
52
+ ln -s /usr/local/bin/go119 /usr/local/bin/go
53
+ export PATH="${PATH}:/root/go/bin"
54
+
55
+ go version
56
+ terraform -version
57
+
58
+ go install gotest.tools/gotestsum@latest
59
+ gotestsum --version
60
+
61
+ export COVERAGE_FLAGS='-covermode=atomic -coverprofile="gotests.coverage" -coverpkg=./...'
62
+ 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