Skip to content

Commit

Permalink
Merge pull request #276 from tetsuharuohzeki/add-github-action-workflow
Browse files Browse the repository at this point in the history
Replace CI workflow with GitHub Actions
  • Loading branch information
mitsukavg authored Apr 14, 2021
2 parents d4c99cf + 4ea7985 commit 7108011
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 21 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
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
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,3 @@ test: test_epic test_input test_operation test_queue test_setting

test_%:
make test -C $(CURDIR)/$*

travis:
make build -j 8
make test -j 8
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# popuko

[![Build Status (master)](https://travis-ci.org/voyagegroup/popuko.svg?branch=master)](https://travis-ci.org/voyagegroup/popuko)
[![CI Status](https://github.com/voyagegroup/popuko/workflows/CI/badge.svg)](https://github.com/voyagegroup/popuko/actions?query=workflow%3ACI)

## What is this?

Expand Down

0 comments on commit 7108011

Please sign in to comment.