-
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #15 from motemen/binary
Maintain release engineering for executable binary release
- Loading branch information
Showing
8 changed files
with
715 additions
and
0 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 @@ | ||
github: [motemen, Songmu] |
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,21 @@ | ||
name: release | ||
on: | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: setup go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.x | ||
- name: checkout | ||
uses: actions/checkout@v1 | ||
- name: release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.github_token }} | ||
run: | | ||
export GOBIN=$(pwd)/bin | ||
PATH=$GOBIN:$PATH make crossbuild upload |
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,46 @@ | ||
name: test | ||
on: | ||
push: | ||
branches: | ||
- "**" | ||
pull_request: {} | ||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
- windows-latest | ||
steps: | ||
- name: setup go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.x | ||
- name: checkout | ||
uses: actions/checkout@v1 | ||
- name: lint | ||
run: | | ||
GO111MODULE=off GOBIN=$(pwd)/bin go get golang.org/x/lint/golint | ||
bin/golint -set_exit_status ./... | ||
if: "matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest'" | ||
- name: test | ||
run: go test -coverprofile coverage.out -covermode atomic ./... | ||
- name: Send coverage | ||
uses: shogo82148/actions-goveralls@v1 | ||
with: | ||
github-token: ${{ secrets.github_token }} | ||
path-to-profile: coverage.out | ||
parallel: true | ||
job-number: ${{ strategy.job-index }} | ||
finish: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
steps: | ||
- name: finish coverage report | ||
uses: shogo82148/actions-goveralls@v1 | ||
with: | ||
github-token: ${{ secrets.github_token }} | ||
parallel-finished: true |
Oops, something went wrong.