From 3bcc4b1e9c7b91aee1a9de3d889c33357a4bc17d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petra=20C=CC=8Ci=CC=81halova=CC=81?= Date: Wed, 24 Apr 2024 14:06:01 +0200 Subject: [PATCH] update GO version in github workflows, docker-compose file and pr-check script --- .github/workflows/actions.yml | 8 ++++---- docker-compose.yaml | 2 +- pr_check.sh | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 6069f5569..8192c3eba 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: "1.17" + go-version: "1.18" - uses: Jerome1337/gofmt-action@v1.0.4 govet: @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: "1.17" + go-version: "1.18" - run: | go vet ./... @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: "1.17" + go-version: "1.18" - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: @@ -49,6 +49,6 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: "1.17" + go-version: "1.18" - run: | go test ./... diff --git a/docker-compose.yaml b/docker-compose.yaml index 87965bfe9..9b2769c36 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,7 +2,7 @@ version: '3' services: sources-api-db-setup: - image: golang:1.17 + image: golang:1.18 entrypoint: "bash" command: - -c diff --git a/pr_check.sh b/pr_check.sh index 6bee73a23..0c94dfc03 100755 --- a/pr_check.sh +++ b/pr_check.sh @@ -54,8 +54,8 @@ export DATABASE_PASSWORD=toor export DATABASE_NAME=sources_api_test_go echo "Running tests...here we go" - -export GOROOT="/opt/go/1.17.8" +g +export GOROOT="/opt/go/1.18.1" export PATH="${GOROOT}/bin:${PATH}" make alltest