From 84a0834c532cb5505c644ecc942386fc0e71d56e Mon Sep 17 00:00:00 2001 From: Jason Johnston Date: Tue, 17 Oct 2023 19:17:30 -0400 Subject: [PATCH] Create go.yml (#177) Add workflow to run go tests on PRs --- .github/workflows/go.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..56cd7574 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,32 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "trunk" ] + pull_request: + branches: [ "trunk" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + + - name: Install dependencies + run: | + cd ./cli + go get . + + - name: Test + run: | + cd cli + go test -v ./...