From 0b594b0d584857e8bcb75166fba1dd78620c296a Mon Sep 17 00:00:00 2001 From: TheBoringDude Date: Fri, 21 May 2021 21:01:46 +0800 Subject: [PATCH] add github ci workflows --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 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..9077b86 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +on: [push, pull_request] +name: Test +jobs: + Build: + strategy: + matrix: + go-version: [1.14.x, 1.15.x, 1.16.x] + platform: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.platform }} + steps: + - name: Install Go + uses: actions/setup-go@v1 + with: + go-version: ${{ matrix.go-version }} + - name: Fetch Repository + uses: actions/checkout@v2 + - name: Run Test + run: go test ./... -v -race