From 11a51294d0de7b0636bf861d041b15295f6d8924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Garc=C3=ADa=20Crespo?= Date: Mon, 29 Apr 2024 08:44:24 +0000 Subject: [PATCH] Update workflow triggers --- {hack/ccp/.github => .github}/workflows/test.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) rename {hack/ccp/.github => .github}/workflows/test.yml (72%) diff --git a/hack/ccp/.github/workflows/test.yml b/.github/workflows/test.yml similarity index 72% rename from hack/ccp/.github/workflows/test.yml rename to .github/workflows/test.yml index 0070a5d5f..21d631ad3 100644 --- a/hack/ccp/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,7 @@ name: Tests on: - - push - - pull_request + pull_request: + push: permissions: contents: read jobs: @@ -13,11 +13,13 @@ jobs: os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: + - name: Check out repository + uses: actions/checkout@v4 - name: Install Go uses: actions/setup-go@v5 with: - go-version-file: go.mod - - name: Check out repository - uses: actions/checkout@v4 + go-version-file: hack/ccp/go.mod + cache-dependency-path: hack/ccp/go.sum - name: Run tests run: go test -race ./... + working-directory: hack/ccp