From ba42aca069b9d5a4192a2371ea9d6958b6cc8a94 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com> Date: Thu, 18 Apr 2024 15:13:58 +0200 Subject: [PATCH] Workflow --- .github/workflows/run-cli-tests.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/run-cli-tests.yml diff --git a/.github/workflows/run-cli-tests.yml b/.github/workflows/run-cli-tests.yml new file mode 100644 index 000000000..aa3edaff6 --- /dev/null +++ b/.github/workflows/run-cli-tests.yml @@ -0,0 +1,22 @@ +name: Go CLI Tests +on: [push] # Test + +jobs: + test: + defaults: + run: + working-directory: ./cli + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: "1.21.x" + - name: Install dependencies + run: go get . + - name: Build + run: go build -v ./... + - name: Test with the Go CLI + run: TEST_MODE=true go test -v -count=1 ./test