From 967bc433d26530e9494e0de43e982764953ddc09 Mon Sep 17 00:00:00 2001 From: matsuyoshi Date: Mon, 5 Apr 2021 09:15:09 +0900 Subject: [PATCH] add workflow --- .github/workflows/test.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..f46a258 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,32 @@ +name: test +on: + push: + branches: + - master + paths-ignore: + - 'README.md' + - '.github/' + pull_request: + branches: + - master + paths-ignore: + - 'README.md' + - '.github/' +jobs: + test: + strategy: + matrix: + go-version: [1.16.x] + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + - name: Checkout code + uses: actions/checkout@v2 + - name: Build + run: go build + - name: Test + run: make test