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 9dc16a3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 33 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/coverage.yml

This file was deleted.

24 changes: 12 additions & 12 deletions .github/workflows/lint-n-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@ 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'
- name: Run tests and coverage
run: make test
go-version-file: go.mod
- name: Run test coverage
run: make coverage
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
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 9dc16a3

Please sign in to comment.