From 66a2a21afa151b300aaee3084eb6ea73e83af6eb Mon Sep 17 00:00:00 2001 From: Furuta Taishi <37322539+ningenMe@users.noreply.github.com> Date: Fri, 23 Jul 2021 01:31:18 +0900 Subject: [PATCH] [fix] (#9) --- .github/workflows/ci-main.yaml | 23 +++++++++++++++++++++ .github/workflows/{ci.yaml => ci-pull.yaml} | 2 -- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci-main.yaml rename .github/workflows/{ci.yaml => ci-pull.yaml} (91%) diff --git a/.github/workflows/ci-main.yaml b/.github/workflows/ci-main.yaml new file mode 100644 index 0000000..87bd074 --- /dev/null +++ b/.github/workflows/ci-main.yaml @@ -0,0 +1,23 @@ +name: ci + +on: + push: + branches: [ main ] + +jobs: + + build-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci-pull.yaml similarity index 91% rename from .github/workflows/ci.yaml rename to .github/workflows/ci-pull.yaml index 1a2e944..b10b35b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci-pull.yaml @@ -1,8 +1,6 @@ name: ci on: - push: - branches: [ main ] pull_request: branches: [ main ]