From bfd71b79efbb026b48fbe203bf0f5c92be36f5e9 Mon Sep 17 00:00:00 2001 From: Pierre Balzack <96387156+balzack@users.noreply.github.com> Date: Fri, 1 Jul 2022 15:04:44 -0700 Subject: [PATCH 1/2] Create go.yml setting up ci --- .github/workflows/go.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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 00000000..4489769a --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,27 @@ +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.17.5 + + - name: Build + run: cd net/server + run: go build databag + + - name: Test + run: cd net/server + run: go test -v ./... From 04e89e79e046a7fa5914e428504a813ede43ac68 Mon Sep 17 00:00:00 2001 From: Pierre Balzack <96387156+balzack@users.noreply.github.com> Date: Fri, 1 Jul 2022 15:07:30 -0700 Subject: [PATCH 2/2] Update go.yml fixing ci script --- .github/workflows/go.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4489769a..427ad6a4 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -19,9 +19,11 @@ jobs: go-version: 1.17.5 - name: Build - run: cd net/server - run: go build databag - + run: | + cd net/server + go build databag + - name: Test - run: cd net/server - run: go test -v ./... + run: | + cd net/server + go test -v ./...