@@ -12,22 +12,23 @@ jobs:
12
12
platform : [ubuntu-latest, macos-latest, windows-latest]
13
13
runs-on : ${{ matrix.platform }}
14
14
steps :
15
- - name : Install Go
16
- uses : actions/setup-go@v5
17
- with :
18
- go-version : ${{ matrix.go-version }}
19
- - name : Set git to use LF to avoid problem with goldens on windows
20
- run : |
21
- git config --global core.autocrlf false
22
- git config --global core.eol lf
23
- - name : Checkout
24
- uses : actions/checkout@v4
25
- with :
26
- fetch-depth : 1
27
- - name : Run unit tests
28
- run : go test ./...
29
- - name : Execute main binary # Test the runtime for potential panics.
30
- run : go run cmd/scw/main.go -h
15
+ - name : Set git to use LF to avoid problem with goldens on windows
16
+ run : |
17
+ git config --global core.autocrlf false
18
+ git config --global core.eol lf
19
+ # Checkout should always be before setup-go to ensure caching is working
20
+ - name : Checkout
21
+ uses : actions/checkout@v4
22
+ with :
23
+ fetch-depth : 1
24
+ - name : Install Go
25
+ uses : actions/setup-go@v5
26
+ with :
27
+ go-version : ${{ matrix.go-version }}
28
+ - name : Run unit tests
29
+ run : go test ./...
30
+ - name : Execute main binary # Test the runtime for potential panics.
31
+ run : go run cmd/scw/main.go -h
31
32
32
33
build-tests :
33
34
strategy :
@@ -36,14 +37,15 @@ jobs:
36
37
platform : [ubuntu-latest]
37
38
runs-on : ${{ matrix.platform }}
38
39
steps :
39
- - name : Install Go
40
- uses : actions/setup-go@v5
41
- with :
42
- go-version : ${{ matrix.go-version }}
40
+ # Checkout should always be before setup-go to ensure caching is working
43
41
- name : Checkout
44
42
uses : actions/checkout@v4
45
43
with :
46
44
fetch-depth : 1
45
+ - name : Install Go
46
+ uses : actions/setup-go@v5
47
+ with :
48
+ go-version : ${{ matrix.go-version }}
47
49
- name : Build binaries
48
50
run : ./scripts/build.sh
49
51
- name : Print binaries size
0 commit comments