diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..8fe8a55 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,22 @@ +name: go + +on: [push, pull_request] + +jobs: + build_and_test: + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + - run: go version + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest + - run: go test -v -coverprofile=profile.cov ./... + - uses: shogo82148/actions-goveralls@v1 + with: + path-to-profile: profile.cov + + diff --git a/README.md b/README.md index e604598..7cf9ba5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Emoji Emoji is a simple golang package. -[![wercker status](https://app.wercker.com/status/7bef60de2c6d3e0e6c13d56b2393c5d8/s/master "wercker status")](https://app.wercker.com/project/byKey/7bef60de2c6d3e0e6c13d56b2393c5d8) +![master workflow](https://github.com/kyokomi/emoji/actions/workflows/go.yml/badge.svg) [![Coverage Status](https://coveralls.io/repos/kyokomi/emoji/badge.png?branch=master)](https://coveralls.io/r/kyokomi/emoji?branch=master) [![GoDoc](https://pkg.go.dev/badge/github.com/kyokomi/emoji.svg)](https://pkg.go.dev/github.com/kyokomi/emoji/v2) diff --git a/wercker.yml b/wercker.yml deleted file mode 100644 index 82bd209..0000000 --- a/wercker.yml +++ /dev/null @@ -1,33 +0,0 @@ -box: golang -build: - steps: - - setup-go-workspace - - script: - name: go version - code: go version - - script: - name: install tools - code: | - go install github.com/mattn/goveralls@latest - go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest - - script: - name: go get - code: | - go get ./... - - script: - name: go build - code: | - go build ./... - - script: - name: golangci-lint - code: | - golangci-lint run - - script: - name: go test - code: | - go test ./... - - script: - name: coveralls - code: | - goveralls -v -service wercker.com -repotoken $COVERALLS_TOKEN -