From 5cddd5f527db98c6f6662d39dc0e6b89ec733e16 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Sun, 28 Jan 2024 05:32:22 +0000 Subject: [PATCH] feat/fix: Update GitHub Actions workflow file for --- golang/go-guestbook/.github/workflows/ci.yml | 35 ++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 golang/go-guestbook/.github/workflows/ci.yml diff --git a/golang/go-guestbook/.github/workflows/ci.yml b/golang/go-guestbook/.github/workflows/ci.yml new file mode 100644 index 000000000..c7039d326 --- /dev/null +++ b/golang/go-guestbook/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: Continuous Integration + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: '1.16' + + - name: Build application + run: go build ./... + + - name: Run tests + run: go test ./... + + - name: Publish artifacts + uses: actions/upload-artifact@v2 + with: + name: go-guestbook-artifacts + path: | + go-guestbook/bin/