From 42e9219696d013f252e69d7f0cdea2925125edb1 Mon Sep 17 00:00:00 2001 From: Ichinose Shogo Date: Sat, 31 Jul 2021 16:13:10 +0900 Subject: [PATCH] introduce GitHub Actions --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..26bfb94 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: test +on: + push: + pull_request: + +jobs: + test: + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + go: + - '1.16' + - '1.15' + runs-on: ${{ matrix.os }} + steps: + - name: setup Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} + - name: checkout + uses: actions/checkout@v2 + + - name: test + run: | + go test --race ./... -- 2.50.1