This repository was archived by the owner on Feb 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We don't need a complex fork&join jobs. So we don't have to use CircleCI.
- Loading branch information
1 parent
cef4ba7
commit cf8404d
Showing
2 changed files
with
43 additions
and
1 deletion.
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,39 @@ | ||
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 bors-ng. | ||
- staging | ||
- trying | ||
tags-ignore: | ||
# Ignore for release/ | ||
- v*.*.* | ||
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 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