diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5657c3ff..f81e7e83 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -39,6 +39,8 @@ jobs: run: go install honnef.co/go/tools/cmd/staticcheck@latest - name: Lint run: staticcheck -tests -show-ignored ./... + - name: Build + run: build -v ./... actions: runs-on: ubuntu-latest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 41d5e3cd..21a273b7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,6 +35,21 @@ jobs: - 'defaults' - 'help.txt' + test-golang: + needs: detect-changes + if: ${{ needs.detect-changes.outputs.cli == 'true' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v4 + with: + go-version: '1.21.5' + - name: Install dependencies + run: go get . + - name: Run Go tests + run: go test + ubuntu: needs: detect-changes # only run if