@@ -10,64 +10,61 @@ jobs:
10
10
container :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - name : Install Go
14
- uses : actions/setup-go@v3
15
- with :
16
- go-version : ' 1.17'
13
+ - name : Install Go
14
+ uses : actions/setup-go@v3
15
+ with :
16
+ go-version : ' 1.17'
17
17
18
- - name : Checkout code
19
- uses : actions/checkout@v3
18
+ - name : Checkout code
19
+ uses : actions/checkout@v3
20
20
21
- - name : Test with code coverage
22
- run : go test ./... -race -covermode=atomic -coverprofile=coverage.txt
21
+ - name : Test with code coverage
22
+ run : go test ./... -race -covermode=atomic -coverprofile=coverage.txt
23
23
24
- - name : Build binaries and Docker image with GoReleaser
25
- uses : goreleaser/goreleaser-action@v2
26
- with :
27
- args : release --snapshot --skip-publish
24
+ - name : Build binaries and Docker image with GoReleaser
25
+ uses : goreleaser/goreleaser-action@v2
26
+ with :
27
+ args : release --snapshot --skip-publish
28
28
29
- - name : Make example directory writable for all users
30
- run : chmod o+w example
29
+ - name : Make example directory writable for all users
30
+ run : chmod o+w example
31
31
32
- - name : Run the built Docker image
33
- run : cd example && docker run --workdir /workspace --mount type=bind,source="$(pwd)",target=/workspace ghcr.io/patrickhoefler/cloudbuildgraph:0.0.0
34
-
35
- - name : Upload code coverage
36
- uses : codecov/codecov-action@v2
32
+ - name : Run the built Docker image
33
+ run : cd example && docker run --workdir /workspace --mount type=bind,source="$(pwd)",target=/workspace ghcr.io/patrickhoefler/cloudbuildgraph:0.0.0
37
34
38
35
native :
39
36
strategy :
40
37
matrix :
41
38
os : [macos-latest, ubuntu-latest, windows-latest]
42
39
runs-on : ${{ matrix.os }}
43
40
steps :
44
- - name : Install Go
45
- uses : actions/setup-go@v3
46
- with :
47
- go-version : ' 1.17'
41
+ - name : Install Go
42
+ uses : actions/setup-go@v3
43
+ with :
44
+ go-version : ' 1.17'
48
45
49
- - name : Checkout code
50
- uses : actions/checkout@v3
46
+ - name : Checkout code
47
+ uses : actions/checkout@v3
51
48
52
- # Some tests are currently broken on Windows, disable for now
53
- - name : Test
54
- if : runner.os != 'Windows'
55
- run : go test ./...
49
+ # Some tests are currently broken on Windows, disable for now
50
+ - name : Test
51
+ if : runner.os != 'Windows'
52
+ run : go test ./...
56
53
57
- - name : Build
58
- run : go build
54
+ - name : Build
55
+ run : go build
59
56
60
- - name : ' [macOS] Install graphviz'
61
- if : runner.os == 'macOS'
62
- run : brew install graphviz
57
+ - name : ' [macOS] Install graphviz'
58
+ if : runner.os == 'macOS'
59
+ run : brew install graphviz
63
60
64
- - name : ' [Ubuntu] Install graphviz'
65
- if : runner.os == 'Linux'
66
- run : sudo apt install --no-install-recommends -y graphviz
61
+ - name : ' [Ubuntu] Install graphviz'
62
+ if : runner.os == 'Linux'
63
+ run : sudo apt install --no-install-recommends -y graphviz
67
64
68
- - name : ' [Windows] Install graphviz'
69
- if : runner.os == 'Windows'
70
- run : choco install graphviz --no-progress
65
+ - name : ' [Windows] Install graphviz'
66
+ if : runner.os == 'Windows'
67
+ run : choco install graphviz --no-progress
71
68
72
- - name : Run the binary
73
- run : cd example && ../cloudbuildgraph
69
+ - name : Run the binary
70
+ run : cd example && ../cloudbuildgraph
0 commit comments