-
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.
* Change from Travis to GitHub Actions. * Change from gox to goreleaser. * Add .gitignore.
- Loading branch information
Showing
4 changed files
with
82 additions
and
39 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,48 @@ | ||
name: continuous integration | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
go: [ '1.13.x', '1.14.x', '1.15.x' ] | ||
runs-on: ${{ matrix.platform }} | ||
name: Test (go ${{ matrix.go }}, ${{ matrix.platform }}) | ||
env: | ||
- CGO_ENABLED=0 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: Run tests | ||
run: go test -coverprofile=coverage.txt -covermode=atomic ./... | ||
shell: bash | ||
- name: Upload coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
files: coverage.txt | ||
flags: ${{ matrix.go }},${{ matrix.platform }} | ||
publish: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
needs: test | ||
runs-on: ubuntu-latest | ||
name: Publish | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.15.x' | ||
- 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,2 @@ | ||
.gocompat.json | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
before: | ||
hooks: | ||
- go mod download | ||
builds: | ||
- id: default-build | ||
main: ./cmd/gocompat/main.go | ||
binary: gocompat | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
goarch: | ||
- '386' | ||
- amd64 | ||
- arm64 | ||
mod_timestamp: '{{ .CommitTimestamp }}' | ||
archives: | ||
- id: default-archive | ||
builds: | ||
- default-build | ||
format: tar.gz | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
name_template: "{{ .Tag }}-next" | ||
changelog: | ||
sort: asc |
This file was deleted.
Oops, something went wrong.