File tree Expand file tree Collapse file tree 1 file changed +38
-9
lines changed Expand file tree Collapse file tree 1 file changed +38
-9
lines changed Original file line number Diff line number Diff line change @@ -2,24 +2,24 @@ name: citest
2
2
on :
3
3
push :
4
4
pull_request :
5
- schedule :
6
- - cron : ' 30 4 * * 1'
5
+
6
+ # set go version for all steps
7
+ env :
8
+ GOVERSION : 1.22.x
9
+
7
10
jobs :
8
11
test :
9
12
strategy :
10
13
fail-fast : false
11
14
matrix :
12
- go-version :
13
- - 1.22.x
14
- os : [ubuntu-latest]
15
- runs-on : ${{ matrix.os }}
15
+ go-version : ${{ env.GOVERSION }}
16
+ runs-on : ubuntu-latest
16
17
steps :
17
- - uses : abbbi/github- actions-tune@v1
18
+ - uses : actions/checkout@v4
18
19
- name : Install Go
19
- uses : actions/setup-go@v4
20
+ uses : actions/setup-go@v5
20
21
with :
21
22
go-version : ${{ matrix.go-version }}
22
- - uses : actions/checkout@v3
23
23
- run : make clean
24
24
- run : make citest
25
25
- run : make
29
29
name : check_nsc_web-go${{ matrix.go-version }}
30
30
path : check_nsc_web
31
31
- run : make clean
32
+
33
+ integration :
34
+ strategy :
35
+ fail-fast : false
36
+ matrix :
37
+ go-version : ${{ env.GOVERSION }}
38
+ runs-on : windows-latest
39
+ steps :
40
+ - uses : actions/checkout@v4
41
+ - name : Install Go
42
+ uses : actions/setup-go@v5
43
+ with :
44
+ go-version : ${{ matrix.go-version }}
45
+ - run : |
46
+ echo "Testing with ${{ env.GOVERSION }}"
47
+ go work init
48
+ go work use .
49
+ $Env:GOWORK = "off"
50
+ go mod vendor
51
+ $Env:GOWORK = ""
52
+
53
+ # build check_nsc_web
54
+ go build -o ./check_nsc_web.exe cmd/check_nsc_web/main.go
55
+
56
+ # install nscp
57
+ Invoke-WebRequest -UseBasicParsing -Uri https://github.com/mickem/nscp/releases/download/0.5.2.35/NSCP-0.5.2.35-x64.msi -OutFile NSCP-0.5.2.35-x64.msi
58
+ msiexec /i NSCP-0.5.2.35-x64.msi /qn CONF_WEB=1 NSCLIENT_PWD=test
59
+
60
+ .\check_nsc_web.exe -vv -k -p test -u https://127.0.0.1:8443 ; if ($LASTEXITCODE -ne 0) { exit 1 }
You can’t perform that action at this time.
0 commit comments