From 59b530136a0fbc9f45532594e1f4f68eb85e7259 Mon Sep 17 00:00:00 2001 From: Hengfei Yang Date: Fri, 17 Jun 2022 22:25:30 +0800 Subject: [PATCH] Use Github Action --- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 000000000..b7a0df574 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - name: Build + run: go build -o zinc cmd/zinc/main.go + + - name: Test + run: ./coverage.sh + + - name: Codecov + uses: codecov/codecov-action@v3.1.0