Skip to content

Commit

Permalink
Merge b009468 into 7aa7d46
Browse files Browse the repository at this point in the history
  • Loading branch information
jandelgado committed May 23, 2022
2 parents 7aa7d46 + b009468 commit d7fe45a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.17.x
go-version: 1.18
- name: Checkout code
uses: actions/checkout@v2
- name: Run linters
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
version: v1.29
version: v1.46.2

test:
strategy:
matrix:
go-version: [1.17.x]
go-version: [1.18]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
Expand All @@ -44,16 +44,16 @@ jobs:
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.17.x
go-version: 1.18
- name: Checkout code
uses: actions/checkout@v2
- name: Calc coverage
run: |
go test -v -covermode=count -coverprofile=coverage.out
- name: Convert coverage.out to coverage.lcov
uses: jandelgado/gcov2lcov-action@v1.0.6
uses: jandelgado/gcov2lcov-action@c471168a9931920cfe55d91673bfd5a0fcf4ed4c
- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/upload_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.17.x
go-version: 1.18
- name: Checkout code
uses: actions/checkout@v2
- name: Run GoReleaser
Expand Down Expand Up @@ -42,7 +42,6 @@ jobs:
run: |
VERSION=$(git describe --tags)
docker build --build-arg "version=$VERSION" --tag ${IMAGE_NAME} .
- name: push Docker image
run: |
TAG=$(git describe --tags)
Expand All @@ -52,4 +51,3 @@ jobs:
docker push ${REGISTRY}/${IMAGE_NAME}:${GITHUB_SHA}
docker push ${REGISTRY}/${IMAGE_NAME}:${TAG}
docker push ${REGISTRY}/${IMAGE_NAME}:latest
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# golang ci template using github actions


[![Build Status](https://github.com/jandelgado/golang-ci-template-github-actions/workflows/test%20and%20build/badge.svg)](https://github.com/jandelgado/golang-ci-template-github-actions/actions?workflow=test%20and%20build)
[![Coverage Status](https://coveralls.io/repos/github/jandelgado/golang-ci-template-github-actions/badge.svg?branch=master)](https://coveralls.io/github/jandelgado/golang-ci-template-github-actions?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/jandelgado/golang-ci-template-github-actions)](https://goreportcard.com/report/github.com/jandelgado/golang-ci-template-github-actions)
Expand Down

0 comments on commit d7fe45a

Please sign in to comment.