Skip to content

Commit

Permalink
feat: preparing for release
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Nov 6, 2020
1 parent bfa3bc5 commit 2762ffd
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 6 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build

on:
push:
branches:
- 'master'
tags:
- 'v*'
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Cache Go modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Dependencies
run: go mod tidy
- name: Test
run: go test -v -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./...
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
if: success() && startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@

# Dependency directories (remove the comment below to include it)
# vendor/
coverage.txt
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# zglob2
# fileglob

## What

## Why

## vs Other libraries
2 changes: 1 addition & 1 deletion glob.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zglob
package fileglob

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion glob_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zglob
package fileglob

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/goreleaser/zglob
module github.com/goreleaser/fileglob

go 1.15

Expand Down
2 changes: 1 addition & 1 deletion prefix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zglob
package fileglob

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion prefix_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package zglob
package fileglob

import "testing"

Expand Down

0 comments on commit 2762ffd

Please sign in to comment.