From 7fa33f2c1b77266d416e038066955a59a1685473 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Fri, 21 Jan 2022 13:11:34 +0800 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..be05e47 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Go + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + + build: + runs-on: ubuntu-latest + strategy: + matrix: + goVer: [ '1.15', '1.16', '1.17' ] + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.goVer }} + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...