From 8236e5895a436a4edf805e63d4b796c3e0518f52 Mon Sep 17 00:00:00 2001 From: corvinFn Date: Sat, 9 Sep 2023 18:23:49 +0800 Subject: [PATCH] github actions demo --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..6998dc4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: Go build test + +on: + push: + branches: + - master + - develop + +jobs: + build: + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.19' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...