chore: update golang (to 1.20.x) and golangci-linter (#1388)

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
Ramkumar Chinchani
2023-04-27 00:09:46 -07:00
committed by GitHub
parent 9cc990d7ca
commit 635d07ae04
30 changed files with 41 additions and 42 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ jobs:
- uses: actions/setup-go@v4
with:
cache: false
go-version: 1.19.x
go-version: 1.20.x
# Run benchmark with `go test -bench` and stores the output to a file
- name: Run benchmark
run: make BENCH_OUTPUT=ci-cd run-bench
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
- uses: actions/setup-go@v4
with:
cache: false
go-version: 1.19.x
go-version: 1.20.x
- name: Install dependencies
run: |
cd $GITHUB_WORKSPACE
+1 -1
View File
@@ -39,7 +39,7 @@ jobs:
uses: actions/setup-go@v4
with:
cache: false
go-version: 1.19.x
go-version: 1.20.x
- name: Check out source code
uses: actions/checkout@v3
+1 -1
View File
@@ -21,7 +21,7 @@ jobs:
uses: actions/setup-go@v4
with:
cache: false
go-version: 1.19.x
go-version: 1.20.x
- name: Check out source code
uses: actions/checkout@v3
- name: Install dependencies
+3 -3
View File
@@ -31,7 +31,7 @@ jobs:
- uses: actions/setup-go@v4
with:
cache: false
go-version: 1.19.x
go-version: 1.20.x
- name: Install dependencies
run: |
cd $GITHUB_WORKSPACE
@@ -105,8 +105,8 @@ jobs:
./bin/zot-linux-amd64 serve test/cluster/config-minio3.json &
sleep 10
# run tests
skopeo --debug copy --format=oci --dest-tls-verify=false docker://ghcr.io/project-zot/golang:1.19 docker://localhost:8080/golang:1.19
skopeo --debug copy --src-tls-verify=false docker://localhost:8080/golang:1.19 oci:golang:1.19
skopeo --debug copy --format=oci --dest-tls-verify=false docker://ghcr.io/project-zot/golang:1.20 docker://localhost:8080/golang:1.20
skopeo --debug copy --src-tls-verify=false docker://localhost:8080/golang:1.20 oci:golang:1.20
echo "{\"name\":\"foo\",\"value\":\"bar\"}" > config.json
echo "hello world" > artifact.txt
oras push --plain-http localhost:8080/hello-artifact:v2 \
+1 -1
View File
@@ -49,7 +49,7 @@ jobs:
uses: actions/setup-go@v4
with:
cache: false
go-version: 1.19.x
go-version: 1.20.x
- name: Install dependencies
run: |
+1 -1
View File
@@ -20,7 +20,7 @@ jobs:
- uses: actions/setup-go@v4
with:
cache: false
go-version: 1.19.x
go-version: 1.20.x
- name: Install dependencies
run: |
cd $GITHUB_WORKSPACE
+2 -2
View File
@@ -19,13 +19,13 @@ jobs:
- uses: actions/setup-go@v4
with:
cache: false
go-version: '1.19'
go-version: '1.20'
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.49.0
version: v1.52.2
# Optional: working directory, useful for monorepos
# working-directory: somedir
+1 -1
View File
@@ -25,7 +25,7 @@ jobs:
- uses: actions/setup-go@v4
with:
cache: false
go-version: 1.19.x
go-version: 1.20.x
- name: Install dependencies
run: |
cd $GITHUB_WORKSPACE
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
- uses: actions/setup-go@v4
with:
cache: false
go-version: 1.19.x
go-version: 1.20.x
- name: Install go-licenses
run: go install github.com/google/go-licenses@latest
- name: Check for forbidden licenses
+1 -1
View File
@@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.x
go-version: 1.20.x
- name: Install dependencies
run: |
cd $GITHUB_WORKSPACE
+2 -2
View File
@@ -20,11 +20,11 @@ jobs:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Install go 1.19
- name: Install go 1.20
uses: actions/setup-go@v4
with:
cache: false
go-version: 1.19.x
go-version: 1.20.x
- name: Checkout this PR
uses: actions/checkout@v3
- name: Start zot server
@@ -17,8 +17,6 @@ jobs:
strategy:
matrix:
golang_version:
- "1.18"
- "1.19"
- "1.20"
runs-on: ubuntu-latest
steps:
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
- uses: actions/setup-go@v4
with:
cache: false
go-version: 1.19.x
go-version: 1.20.x
- name: Install dependencies
run: |
cd $GITHUB_WORKSPACE
+1 -1
View File
@@ -25,7 +25,7 @@ jobs:
uses: actions/setup-go@v4
with:
cache: false
go-version: 1.19.x
go-version: 1.20.x
- name: Checkout
uses: actions/checkout@v3
- name: Build zot