Skip to content

Commit

Permalink
Merge pull request #14 from linyows/actions
Browse files Browse the repository at this point in the history
Use github actions instead of travis
  • Loading branch information
linyows authored May 23, 2021
2 parents 9d93d7d + a68c0e3 commit 6d78ddc
Show file tree
Hide file tree
Showing 12 changed files with 523 additions and 124 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
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
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
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 }}
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/dewy
/dist
/coverage.txt
dist/
25 changes: 17 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/dewy
- id: 'dewy'
main: ./cmd/dewy
env:
- GO111MODULE=on
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
- darwin
goarch:
- amd64
archive:
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
files:
- none*
- arm64
archives:
- replacements:
386: i386
amd64: x86_64
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
files:
- none*
checksum:
name_template: 'checksums.txt'
snapshot:
Expand All @@ -20,5 +29,5 @@ changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^docs:'
- '^test:'
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<p align="center"><br><br>
<img src="https://github.com/linyows/dewy/raw/master/misc/dewy-logo.png" width="150"><br><br><br><br>
<p align="center">
<img alt="DEWY" src="https://github.com/linyows/dewy/blob/main/misc/dewy-logo.svg?raw=true" width="500">
</p>

<p align="center">
<strong>DEWY</strong>: The application server for automated deployment with polling a repository.
<strong>DEWY</strong>: The application server for automated deployment with polling a repository.
</p>

<p align="center">
<a href="https://travis-ci.org/linyows/dewy"><img src="https://img.shields.io/travis/linyows/dewy.svg?style=for-the-badge" alt="travis"></a>
<a href="https://github.com/linyows/dewy/releases"><img src="http://img.shields.io/github/release/linyows/dewy.svg?style=for-the-badge" alt="GitHub Release"></a>
<a href="https://github.com/linyows/dewy/blob/master/LICENSE"><img src="http://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge" alt="MIT License"></a>
<a href="http://godoc.org/github.com/linyows/dewy"><img src="http://img.shields.io/badge/go-documentation-blue.svg?style=for-the-badge" alt="Go Documentation"></a>
<a href="https://codecov.io/gh/linyows/dewy"> <img src="https://img.shields.io/codecov/c/github/linyows/dewy.svg?style=for-the-badge" alt="codecov"></a>
</p><br><br>
<a href="https://github.com/linyows/dewy/actions/workflows/test.yml"><img alt="GitHub Workflow Status" src="https://img.shields.io/github/workflow/status/linyows/dewy/Test?label=Test&style=for-the-badge"></a>
<a href="https://github.com/linyows/dewy/actions/workflows/build.yml"><img alt="GitHub Workflow Status" src="https://img.shields.io/github/workflow/status/linyows/dewy/Build%20by%20matrix?style=for-the-badge"></a>
<a href="https://github.com/linyows/dewy/releases"><img src="http://img.shields.io/github/release/linyows/dewy.svg?style=for-the-badge" alt="GitHub Release"></a>
<a href="https://github.com/linyows/dewy/blob/main/LICENSE"><img src="http://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge" alt="MIT License"></a>
<a href="http://godoc.org/github.com/linyows/dewy"><img src="http://img.shields.io/badge/go-documentation-blue.svg?style=for-the-badge" alt="Go Documentation"></a>
<a href="https://codecov.io/gh/linyows/dewy"> <img src="https://img.shields.io/codecov/c/github/linyows/dewy.svg?style=for-the-badge" alt="codecov"></a>
</p>

Installation
------------
Expand Down Expand Up @@ -57,7 +58,7 @@ Dewy has 3 abstract backends and can be used according to the user's environment

Dewy shares the polling history within the cluster in storage so that it does not communicate excessively to remote repair acquisition.

![dewy architecture](https://github.com/linyows/dewy/raw/master/misc/dewy-architecture.png)
![dewy architecture](https://github.com/linyows/dewy/raw/main/misc/dewy-architecture.png)

👉 Dewy is not CIOps but GitOps. As in the article on weave works, you do not have to grant permissions externally, so it's simple and easy to solve if problems arise.

Expand Down Expand Up @@ -117,7 +118,7 @@ Contribution
1. Fork ([https://github.com/linyows/dewy/fork](https://github.com/linyows/dewy/fork))
1. Create a feature branch
1. Commit your changes
1. Rebase your local changes against the master branch
1. Rebase your local changes against the main branch
1. Run test suite with the `go test ./...` command and confirm that it passes
1. Run `gofmt -s`
1. Create a new Pull Request
Expand Down
23 changes: 15 additions & 8 deletions go.mod
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
)
Loading

0 comments on commit 6d78ddc

Please sign in to comment.