Skip to content

Commit

Permalink
ci-cd: bump workflow and go version
Browse files Browse the repository at this point in the history
  • Loading branch information
i-sevostyanov committed May 25, 2024
1 parent 1dc2c14 commit 7c86ca5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/lint-n-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/i-sevostyanov/NanoDB

go 1.20
go 1.22

require (
github.com/golang/mock v1.6.0
Expand Down

0 comments on commit 7c86ca5

Please sign in to comment.