From 2efe0b1e8f42072e07ff49375f7ce611ff21b3fb Mon Sep 17 00:00:00 2001 From: Peter Motzko Date: Mon, 11 Dec 2023 23:15:07 +0100 Subject: [PATCH] feat(ci): add build and test workflow --- .github/workflows/go-test.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/go-test.yml diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml new file mode 100644 index 0000000..91c9d30 --- /dev/null +++ b/.github/workflows/go-test.yml @@ -0,0 +1,33 @@ +name: Test + +on: + push: + paths: + - 'pkg/**' + - '*.go' + - 'go.mod' + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: '1.21.4' + + - name: Install Task + uses: arduino/setup-task@v1 + with: + version: 3.x + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Build + run: task build + + - name: Test with the Go CLI + run: task test