From d0de3952521a59fdd0c6f56454506b9fccee1ee1 Mon Sep 17 00:00:00 2001 From: Claudio d'Angelis Date: Mon, 13 Nov 2023 19:55:23 +0100 Subject: [PATCH] chore(github): run go test at each push --- .github/workflows/main.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20d8b4c..3180978 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,11 +1,22 @@ name: CI on: push: - tags: - - '*' jobs: + test: + 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: Test with the Go CLI + run: go test ./... build: runs-on: ubuntu-latest + if: startsWith(github.event.ref, 'refs/tags/') steps: - uses: actions/checkout@v2 # Required to build changeleg