Skip to content

Commit 26f6375

Browse files
committed
reformat project templates
1 parent 659c5c4 commit 26f6375

File tree

3 files changed

+22
-17
lines changed

3 files changed

+22
-17
lines changed

.github/workflows/deploy.yml renamed to .github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
name: Deploy
1+
name: Release
22

33
on:
44
push:
55
tags:
66
- v[0-9]+.[0-9]+.[0-9]+
77

88
jobs:
9-
deploy:
9+
release:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/setup-go@v1
13-
with:
14-
go-version: 1.13.x
1512
- uses: actions/checkout@v2
13+
- uses: actions/setup-go@v2
14+
with:
15+
go-version: 1.14.x
1616
- name: get dependencies
1717
run: go get -v -t -d ./...
1818
- name: test race
1919
run: go test -v -race ./...
20-
- uses: goreleaser/goreleaser-action@v1
20+
- uses: goreleaser/goreleaser-action@v2
2121
with:
2222
args: release --rm-dist
2323
env:

.github/workflows/test.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ jobs:
88
vendor:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/setup-go@v1
12-
with:
13-
go-version: 1.13.x
1411
- uses: actions/checkout@v2
12+
- uses: actions/setup-go@v2
13+
with:
14+
go-version: 1.14.x
1515
- name: get dependencies
1616
run: go get -v -t -d ./...
1717
- name: vendoring
1818
run: go mod vendor
1919

20-
- uses: actions/upload-artifact@v1
20+
- uses: actions/upload-artifact@v2
2121
with:
2222
name: repository
2323
path: .
@@ -27,16 +27,20 @@ jobs:
2727
needs: vendor
2828
steps:
2929
- uses: actions/checkout@v2
30-
- uses: kyoh86/action-golangci-lint@v1
30+
- name: golangci-lint
31+
uses: golangci/golangci-lint-action@v1
32+
with:
33+
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
34+
version: v1.27
3135

3236
test:
3337
runs-on: ubuntu-latest
3438
needs: vendor
3539
steps:
36-
- uses: actions/setup-go@v1
40+
- uses: actions/setup-go@v2
3741
with:
38-
go-version: 1.13.x
39-
- uses: actions/download-artifact@v1
42+
go-version: 1.14.x
43+
- uses: actions/download-artifact@v2
4044
with:
4145
name: repository
4246
path: .
@@ -47,10 +51,10 @@ jobs:
4751
runs-on: ubuntu-latest
4852
needs: vendor
4953
steps:
50-
- uses: actions/setup-go@v1
54+
- uses: actions/setup-go@v2
5155
with:
52-
go-version: 1.13.x
53-
- uses: actions/download-artifact@v1
56+
go-version: 1.14.x
57+
- uses: actions/download-artifact@v2
5458
with:
5559
name: repository
5660
path: .

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ An analyzer that finds exporting pointers for loop variables.
44

55
[![Go Report Card](https://goreportcard.com/badge/github.com/kyoh86/exportloopref)](https://goreportcard.com/report/github.com/kyoh86/exportloopref)
66
[![Coverage Status](https://img.shields.io/codecov/c/github/kyoh86/exportloopref.svg)](https://codecov.io/gh/kyoh86/exportloopref)
7+
[![Release](https://github.com/kyoh86/exportloopref/workflows/Release/badge.svg)](https://github.com/kyoh86/exportloopref/releases)
78

89
## What's this?
910

0 commit comments

Comments
 (0)