Skip to content

Commit 6124af8

Browse files
authored
Update pipeline (#7)
* Update pipeline * add gitter * fix pipeline * fix pipeline
1 parent c5becde commit 6124af8

File tree

4 files changed

+43
-3
lines changed

4 files changed

+43
-3
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
goreleaser:
10+
runs-on: ubuntu-latest
11+
if: github.repository == 'go-rel/changeset'
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
- name: Set up Go
18+
uses: actions/setup-go@v2
19+
- name: Run GoReleaser
20+
uses: goreleaser/goreleaser-action@v2
21+
with:
22+
version: latest
23+
args: release --rm-dist
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Go
1+
name: Test
22

33
on:
44
push:
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest, macos-latest, windows-latest]
16-
go: [1.12, 1.13, 1.4, 1.15]
16+
go: [1.12, 1.13, 1.4, 1.15, 1.16]
1717
runs-on: ${{ matrix.os }}
1818
steps:
1919
- name: Set up Go 1.x
@@ -24,3 +24,9 @@ jobs:
2424
uses: actions/checkout@v2
2525
- name: Test
2626
run: go test -race ./...
27+
- name: Coverage
28+
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
29+
if: matrix.go == 1.16 && matrix.os == 'ubuntu-latest'
30+
- name: Codecov
31+
uses: codecov/codecov-action@v1
32+
if: matrix.go == 1.16 && matrix.os == 'ubuntu-latest'

.goreleaser.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
builds:
2+
- skip: true
3+
changelog:
4+
sort: asc
5+
filters:
6+
exclude:
7+
- '^docs:'
8+
- '^test:'

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
[![GoDoc](https://godoc.org/github.com/go-rel/changeset?status.svg)](https://godoc.org/github.com/go-rel/changeset)
44
[![Build Status](https://travis-ci.org/go-rel/changeset.svg?branch=master)](https://travis-ci.org/go-rel/changeset)
55
[![Go Report Card](https://goreportcard.com/badge/github.com/go-rel/changeset)](https://goreportcard.com/report/github.com/go-rel/changeset)
6-
[![Gocover](https://gocover.io/_badge/github.com/go-rel/changeset)](https://gocover.io/github.com/go-rel/changeset)
6+
[![codecov](https://codecov.io/gh/go-rel/changeset/branch/master/graph/badge.svg?token=LCJN4KR9N8)](https://codecov.io/gh/go-rel/changeset)
7+
[![Gitter chat](https://badges.gitter.im/go-rel/rel.png)](https://gitter.im/go-rel/rel)
78

89
Changeset mutator for [REL](https://github.com/go-rel/rel). Changesets allow filtering, casting, validation and definition of constraints when manipulating structs.
910

0 commit comments

Comments
 (0)