|
25 | 25 | strategy:
|
26 | 26 | matrix:
|
27 | 27 | go: ["1.19.x", "1.18.x"]
|
28 |
| - os: [ubuntu-latest] |
| 28 | + os: [ubuntu-latest, windows-latest] |
29 | 29 | runs-on: ${{ matrix.os }}
|
30 | 30 | steps:
|
31 | 31 | - uses: actions/setup-go@v2
|
|
40 | 40 | ${{ runner.os }}-go-
|
41 | 41 | - run: |
|
42 | 42 | go test -race -covermode=atomic -coverprofile=prof.out ./...
|
| 43 | + shell: bash |
| 44 | + - if: matrix.os == 'ubuntu-latest' |
| 45 | + run: | |
43 | 46 | ./test.bash
|
44 | 47 | make testconvention
|
| 48 | + - if: matrix.os == 'windows-latest' |
| 49 | + run: | |
| 50 | + go build -o check-log/check-log.exe ./check-log |
| 51 | + go build -o check-procs/check-procs.exe ./check-procs |
| 52 | + go build -o check-windows-eventlog/check-windows-evenglog.exe ./check-windows-eventlog |
| 53 | + go build -o check-ntservice/check-ntservice.exe ./check-ntservice |
| 54 | + go build -o check-disk/check-disk.exe ./check-disk |
| 55 | + go build -o check-uptime/check-uptime.exe ./check-uptime |
| 56 | + go build -o check-tcp/check-tcp.exe ./check-tcp |
45 | 57 | - uses: shogo82148/actions-goveralls@v1
|
46 | 58 | with:
|
47 | 59 | github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
56 | 68 | with:
|
57 | 69 | github-token: ${{ secrets.GITHUB_TOKEN }}
|
58 | 70 | parallel-finished: true
|
59 |
| - test-windows: |
60 |
| - strategy: |
61 |
| - matrix: |
62 |
| - go: ["1.19.x", "1.18.x"] |
63 |
| - runs-on: windows-latest |
64 |
| - steps: |
65 |
| - - uses: actions/setup-go@v2 |
66 |
| - with: |
67 |
| - go-version: ${{ matrix.go }} |
68 |
| - - uses: actions/checkout@v2 |
69 |
| - - uses: actions/cache@v2 |
70 |
| - with: |
71 |
| - path: ~/go/pkg/mod |
72 |
| - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} |
73 |
| - restore-keys: | |
74 |
| - ${{ runner.os }}-go- |
75 |
| - - run: | |
76 |
| - go build -o check-log/check-log.exe ./check-log |
77 |
| - go build -o check-procs/check-procs.exe ./check-procs |
78 |
| - go build -o check-windows-eventlog/check-windows-evenglog.exe ./check-windows-eventlog |
79 |
| - go build -o check-ntservice/check-ntservice.exe ./check-ntservice |
80 |
| - go build -o check-disk/check-disk.exe ./check-disk |
81 |
| - go build -o check-uptime/check-uptime.exe ./check-uptime |
82 |
| - go build -o check-tcp/check-tcp.exe ./check-tcp |
83 |
| - go test -v ./... |
84 | 71 | build:
|
85 |
| - needs: [test, test-windows] |
| 72 | + needs: test |
86 | 73 | runs-on: ubuntu-latest
|
87 | 74 | if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
|
88 | 75 | steps:
|
|
0 commit comments