diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7bdf8af..891c1f7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -31,8 +31,8 @@ jobs: uses: actions/checkout@v4 - name: Build - run: go build if: steps.cache.outputs.cache-hit != 'true' + run: go build build-docker: name: Build Docker diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/test.yaml similarity index 78% rename from .github/workflows/code-quality.yaml rename to .github/workflows/test.yaml index 2d2e550..9da9e56 100644 --- a/.github/workflows/code-quality.yaml +++ b/.github/workflows/test.yaml @@ -1,4 +1,4 @@ -name: Lint +name: Test on: push: @@ -20,13 +20,28 @@ jobs: uses: actions/setup-go@v5 with: go-version: '1.23' - cache: false + cache: true - name: Lint uses: golangci/golangci-lint-action@v6 with: version: latest + test-go: + name: Test code + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.23' + cache: true + - name: Test run: go test