From b8f568494f611a645368ecd4944487b790340dff Mon Sep 17 00:00:00 2001 From: tungle Date: Tue, 23 Jan 2024 14:24:53 +0700 Subject: [PATCH] fix mismatch go version for github checking --- .github/workflows/build.yml | 26 +++++++++----------------- .github/workflows/codeql.yml | 2 +- .github/workflows/interchaintest.yml | 28 ++++++++++++++-------------- .github/workflows/lint.yml | 2 +- .github/workflows/tests.yml | 6 +++--- Dockerfile | 2 ++ 6 files changed, 30 insertions(+), 36 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f6f4bac4f..11bfa2964 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,14 +1,6 @@ --- -on: - push: - paths: - - '**.go' - - 'go.sum' - pull_request: - paths: - - '**.go' - - 'go.sum' -name: build +on: [push, pull_request] +name: Build concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -19,22 +11,22 @@ jobs: runs-on: ubuntu-latest name: build steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: '1.21' - run: go build ./... tidy: runs-on: ubuntu-latest name: tidy steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: '1.21' - run: | go mod tidy CHANGES_IN_REPO=$(git status --porcelain) @@ -42,4 +34,4 @@ jobs: echo "Repository is dirty. Showing 'git status' and 'git --no-pager diff' for debugging now:" git status && git --no-pager diff exit 1 - fi \ No newline at end of file + fi diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1a631167a..09a43c8e1 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -26,7 +26,7 @@ jobs: uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: 1.20 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/interchaintest.yml b/.github/workflows/interchaintest.yml index 4529d0fed..f3b7e7457 100644 --- a/.github/workflows/interchaintest.yml +++ b/.github/workflows/interchaintest.yml @@ -15,9 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: @@ -38,10 +38,10 @@ jobs: runs-on: ubuntu-latest needs: build-and-push-image steps: - - name: Set up Go 1.19 + - name: Set up Go 1.20 uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: '1.20' - name: checkout code uses: actions/checkout@v3 @@ -54,10 +54,10 @@ jobs: runs-on: ubuntu-latest needs: build-and-push-image steps: - - name: Set up Go 1.19 + - name: Set up Go 1.20 uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: '1.20' - name: checkout code uses: actions/checkout@v3 @@ -70,10 +70,10 @@ jobs: runs-on: ubuntu-latest needs: build-and-push-image steps: - - name: Set up Go 1.19 + - name: Set up Go 1.20 uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: '1.20' - name: checkout code uses: actions/checkout@v3 @@ -86,10 +86,10 @@ jobs: runs-on: ubuntu-latest needs: build-and-push-image steps: - - name: Set up Go 1.19 + - name: Set up Go 1.20 uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: '1.20' - name: checkout code uses: actions/checkout@v3 @@ -102,10 +102,10 @@ jobs: # runs-on: ubuntu-latest # needs: build-and-push-image # steps: - # - name: Set up Go 1.19 + # - name: Set up Go 1.20 # uses: actions/setup-go@v3 # with: - # go-version: 1.19 + # go-version: 1.20 # - name: checkout code # uses: actions/checkout@v3 @@ -118,10 +118,10 @@ jobs: # runs-on: ubuntu-latest # needs: build-and-push-image # steps: - # - name: Set up Go 1.19 + # - name: Set up Go 1.20 # uses: actions/setup-go@v3 # with: - # go-version: 1.19 + # go-version: 1.20 # - name: checkout code # uses: actions/checkout@v3 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3188ae602..4ff29966a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: "1.20" - uses: actions/checkout@v3 - name: golangci-lint uses: golangci/golangci-lint-action@v3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b78394d8b..3ab0eca24 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,10 +12,10 @@ jobs: name: test steps: - name: Install Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: - go-version: 1.19 + go-version: '1.21' - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Test run: go test ./... \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 2c129d821..0278f02a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,8 @@ ARG GIT_COMMIT RUN apk add --no-cache \ ca-certificates \ + musl-dev \ + openssl-dev \ build-base \ linux-headers