From 50be06c8a47cfc29846d3781849734aa32d38e12 Mon Sep 17 00:00:00 2001 From: iyear Date: Sun, 4 Sep 2022 19:27:07 +0800 Subject: [PATCH] ci(actions): master branch build and test --- .github/workflows/master.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/master.yml diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 0000000..b6d6424 --- /dev/null +++ b/.github/workflows/master.yml @@ -0,0 +1,25 @@ +name: master builder + +on: + push: + branches: [ master ] + paths: + - '**.go' + - 'go.mod' + - 'go.sum' + - '.github/workflows/*.yml' +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Golang env + uses: actions/setup-go@v3 + with: + go-version: 1.18 + cache: true + - name: Test + run: go test -v ./... + - name: Build + run: go build