@@ -3,8 +3,19 @@ name: Go
33on :
44 push :
55 branches : [main]
6+ paths :
7+ - ' **' # include all files
8+ - ' !.github/**' # exclude .github directory
9+ - ' !**.md' # exclude all markdown files
10+ - ' doc-site/docs/reference/**.md' # include markdown files that are auto generated and need to be tested
11+
612 pull_request :
7- branches : [main]
13+ paths :
14+ - ' **' # include all files
15+ - ' !.github/**' # exclude .github directory
16+ - ' !**.md' # exclude all markdown files
17+ - ' doc-site/docs/reference/**.md' # include markdown files that are auto generated and need to be tested
18+
819 workflow_dispatch :
920
1021jobs :
@@ -20,13 +31,15 @@ jobs:
2031 - name : Set up Go
2132 uses : actions/setup-go@v4
2233 with :
23- go-version : 1.21
34+ go-version : 1.22
2435
2536 - name : Build and Test
2637 run : make
2738
28- - name : Upload coverage
29- run : bash <(curl -s https://codecov.io/bash)
39+ - uses : codecov/codecov-action@v4
40+ with :
41+ codecov_yml_path : ./codecov.yml
42+ token : ${{ secrets.CODECOV_TOKEN }}
3043
3144 docker :
3245 runs-on : ubuntu-latest
3851 - name : Set up Go
3952 uses : actions/setup-go@v4
4053 with :
41- go-version : 1.21
54+ go-version : 1.22
4255
4356 - name : Build Docker image
4457 run : make docker
4760 run : docker save --output firefly.tar.gz hyperledger/firefly
4861
4962 - name : Upload Docker image
50- uses : actions/upload-artifact@v3
63+ uses : actions/upload-artifact@v4
5164 with :
5265 name : firefly-docker
5366 path : firefly.tar.gz
@@ -130,10 +143,10 @@ jobs:
130143 - name : Set up Go
131144 uses : actions/setup-go@v4
132145 with :
133- go-version : 1.21
146+ go-version : 1.22
134147
135148 - name : Download Docker image
136- uses : actions/download-artifact@v3
149+ uses : actions/download-artifact@v4
137150 with :
138151 name : firefly-docker
139152
@@ -152,7 +165,7 @@ jobs:
152165 run : ./test/e2e/run.sh
153166
154167 - name : Archive container logs
155- uses : actions/upload-artifact@v3
168+ uses : actions/upload-artifact@v4
156169 if : always()
157170 with :
158171 name : container-logs-${{ matrix.test-suite }}-${{ matrix.blockchain-provider }}-${{ matrix.blockchain-connector }}-${{ matrix.database-type }}-${{ matrix.token-provider }}
0 commit comments