Skip to content

Commit 9d3fa3d

Browse files
authored
bump action versions (#11)
1 parent 7aa7d46 commit 9d3fa3d

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

.github/workflows/test.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Install Go
15-
uses: actions/setup-go@v2
15+
uses: actions/setup-go@v3
1616
with:
17-
go-version: 1.17.x
17+
go-version: 1.18
1818
- name: Checkout code
1919
uses: actions/checkout@v2
2020
- name: Run linters
21-
uses: golangci/golangci-lint-action@v2
21+
uses: golangci/golangci-lint-action@v3
2222
with:
23-
version: v1.29
23+
version: v1.46.2
2424

2525
test:
2626
strategy:
2727
matrix:
28-
go-version: [1.17.x]
28+
go-version: [1.18]
2929
platform: [ubuntu-latest, macos-latest, windows-latest]
3030
runs-on: ${{ matrix.platform }}
3131
steps:
3232
- name: Install Go
3333
if: success()
34-
uses: actions/setup-go@v2
34+
uses: actions/setup-go@v3
3535
with:
3636
go-version: ${{ matrix.go-version }}
3737
- name: Checkout code
@@ -44,16 +44,16 @@ jobs:
4444
steps:
4545
- name: Install Go
4646
if: success()
47-
uses: actions/setup-go@v2
47+
uses: actions/setup-go@v3
4848
with:
49-
go-version: 1.17.x
49+
go-version: 1.18
5050
- name: Checkout code
5151
uses: actions/checkout@v2
5252
- name: Calc coverage
5353
run: |
5454
go test -v -covermode=count -coverprofile=coverage.out
5555
- name: Convert coverage.out to coverage.lcov
56-
uses: jandelgado/gcov2lcov-action@v1.0.6
56+
uses: jandelgado/gcov2lcov-action@v1
5757
- name: Coveralls
5858
uses: coverallsapp/github-action@v1.1.2
5959
with:

.github/workflows/upload_assets.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Install Go
13-
uses: actions/setup-go@v2
13+
uses: actions/setup-go@v3
1414
with:
15-
go-version: 1.17.x
15+
go-version: 1.18
1616
- name: Checkout code
1717
uses: actions/checkout@v2
1818
- name: Run GoReleaser
@@ -42,7 +42,6 @@ jobs:
4242
run: |
4343
VERSION=$(git describe --tags)
4444
docker build --build-arg "version=$VERSION" --tag ${IMAGE_NAME} .
45-
4645
- name: push Docker image
4746
run: |
4847
TAG=$(git describe --tags)
@@ -52,4 +51,3 @@ jobs:
5251
docker push ${REGISTRY}/${IMAGE_NAME}:${GITHUB_SHA}
5352
docker push ${REGISTRY}/${IMAGE_NAME}:${TAG}
5453
docker push ${REGISTRY}/${IMAGE_NAME}:latest
55-

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# golang ci template using github actions
22

3-
43
[![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)
54
[![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)
65
[![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)

0 commit comments

Comments
 (0)