-
Notifications
You must be signed in to change notification settings - Fork 10
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 #276 from tetsuharuohzeki/add-github-action-workflow
Replace CI workflow with GitHub Actions
- Loading branch information
Showing
4 changed files
with
37 additions
and
21 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,36 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
# To supress this action launches twice on conditions which fulfills all of follwings: | ||
# - On pushing a new change to a branch. | ||
# - The branch is opening a pull request | ||
# - The branch is origin repository. | ||
# We limits for push events for `master`. | ||
# By [this link](https://github.community/t5/GitHub-Actions/How-to-trigger-a-single-build-on-either-push-or-pull-request/m-p/32469#M1144), | ||
# we seem that we need to add `branches` for `pull_request` event. | ||
# However, actually, we don't have to limit a target branch for pull requests to suppress this problem. | ||
# Even if we don't specify it, it triggers this action that pushing to the branch for pull request. | ||
- master | ||
# These branches are used by this bot. | ||
- staging | ||
- trying | ||
pull_request: | ||
|
||
jobs: | ||
ci: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.14 # The Go version to download (if necessary) and use. | ||
- name: build | ||
run: make build -j | ||
- name: test | ||
run: make test -j | ||
env: | ||
CI: true |
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