From 7c86ca5893f0d78f26d11fdf641a9c3b0f0aa5ff Mon Sep 17 00:00:00 2001 From: Ilya Sevostyanov <1166655+i-sevostyanov@users.noreply.github.com> Date: Sat, 25 May 2024 22:21:42 +0400 Subject: [PATCH] ci-cd: bump workflow and go version --- .github/workflows/coverage.yml | 6 +++--- .github/workflows/lint-n-test.yml | 18 ++++++++---------- .github/workflows/tag.yml | 8 ++++---- go.mod | 2 +- 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 17cca1f..0b70d5b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -6,10 +6,10 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version-file: go.mod - name: Run coverage run: make coverage - name: Upload coverage to Codecov diff --git a/.github/workflows/lint-n-test.yml b/.github/workflows/lint-n-test.yml index fe79cc7..dd1f0c9 100644 --- a/.github/workflows/lint-n-test.yml +++ b/.github/workflows/lint-n-test.yml @@ -9,27 +9,25 @@ on: pull_request: jobs: golangci-lint: - strategy: - matrix: - go-version: ['1.20'] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version-file: go.mod - name: lint - uses: golangci/golangci-lint-action@v3.4.0 + uses: golangci/golangci-lint-action@v6 with: version: latest + skip-cache: true tests: needs: golangci-lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version-file: go.mod - name: Run tests and coverage run: make test diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 31379ce..90e8fb4 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -11,9 +11,9 @@ jobs: - uses: actions/checkout@v3 - name: Install Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version-file: go.mod - name: Prepare id: prepare @@ -22,10 +22,10 @@ jobs: echo ::set-output name=tag_name::${TAG} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login into GitHub Container Registry run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin diff --git a/go.mod b/go.mod index 1a8e038..1b33bb2 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/i-sevostyanov/NanoDB -go 1.20 +go 1.22 require ( github.com/golang/mock v1.6.0