-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from linyows/actions
Use github actions instead of travis
- Loading branch information
Showing
12 changed files
with
523 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Build by matrix | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: | | ||
0 0 * * * | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go-version: [1.13.x, 1.14.x, 1.15.x, 1.16.x] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Go build | ||
run: go build ./cmd/dewy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Release by GoReleaser | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
goreleaser: | ||
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.16 | ||
- name: Run goreleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Test | ||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: | | ||
0 0 * * * | ||
jobs: | ||
test: | ||
name: Unit test | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go-version: [1.13.x, 1.14.x, 1.15.x, 1.16.x] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: Go test | ||
run: go test -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
/dewy | ||
/dist | ||
/coverage.txt | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,30 @@ | ||
module github.com/linyows/dewy | ||
|
||
go 1.16 | ||
|
||
require ( | ||
github.com/carlescere/scheduler v0.0.0-20170109141437-ee74d2f83d82 | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/dsnet/compress v0.0.0-20171208185109-cc9eb1d7ad76 // indirect | ||
github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/golang/snappy v0.0.3 // indirect | ||
github.com/google/go-github v17.0.0+incompatible | ||
github.com/google/go-querystring v1.0.0 | ||
github.com/goreleaser/goreleaser v0.101.0 // indirect | ||
github.com/hashicorp/logutils v0.0.0-20150609070431-0dc08b1671f3 | ||
github.com/jessevdk/go-flags v1.4.0 | ||
github.com/hashicorp/logutils v1.0.0 | ||
github.com/jessevdk/go-flags v1.5.0 | ||
github.com/lestrrat-go/pdebug v0.0.0-20180220043849-39f9a71bcabe // indirect | ||
github.com/lestrrat-go/server-starter v0.0.0-20150105222616-88699d57aeee | ||
github.com/lestrrat-go/slack v0.0.0-20180726073730-18d3cce844c0 | ||
github.com/mholt/archiver v0.0.0-20180417220235-e4ef56d48eb0 | ||
github.com/nwaples/rardecode v0.0.0-20171029023500-e06696f847ae // indirect | ||
github.com/pierrec/lz4 v2.0.2+incompatible // indirect | ||
github.com/pierrec/xxHash v0.1.1 // indirect | ||
github.com/ulikunitz/xz v0.5.4 // indirect | ||
golang.org/x/lint v0.0.0-20181217174547-8f45f776aaf1 // indirect | ||
golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4 | ||
golang.org/x/tools v0.0.0-20190221000707-a754db16a40a // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/stretchr/testify v1.7.0 // indirect | ||
github.com/ulikunitz/xz v0.5.10 // indirect | ||
golang.org/x/net v0.0.0-20210505214959-0714010a04ed // indirect | ||
golang.org/x/oauth2 v0.0.0-20210427180440-81ed05c6b58c | ||
golang.org/x/sys v0.0.0-20210503173754-0981d6026fa6 // indirect | ||
google.golang.org/appengine v1.6.7 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect | ||
) |
Oops, something went wrong.