From 339df29d4480b91f89add5ad5dad37a8479db029 Mon Sep 17 00:00:00 2001 From: Tetsuharu Ohzeki Date: Fri, 7 Aug 2020 23:21:43 +0900 Subject: [PATCH 1/2] Add CI workflow by GitHub Actions --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..09750b1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 From 4ea79856f1999622540c2bd0002f1d997686ff56 Mon Sep 17 00:00:00 2001 From: Tetsuharu Ohzeki Date: Fri, 7 Aug 2020 23:32:39 +0900 Subject: [PATCH 2/2] Remove TravisCI configuration --- .travis.yml | 16 ---------------- Makefile | 4 ---- README.md | 2 +- 3 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 95ee172..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: go - -go: - - "1.14" - -script: - - make travis -j 8 - -notifications: - email: false - webhooks: - urls: - - https://lism.in/travis - on_success: always - on_failure: always - on_start: always diff --git a/Makefile b/Makefile index 88d6815..1e0ab10 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index dd9e384..cd54dee 100644 --- a/README.md +++ b/README.md @@ -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?