From 2a9dfe8a325c4e425653a1575e2281f6b1ff6b9c Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Tue, 22 Nov 2022 15:15:26 -0300 Subject: [PATCH] chore: avoid uneeded runs of codecov workflow Signed-off-by: Carlos A Becker --- .github/workflows/build.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a4d65b2..7bb2417 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,24 +9,14 @@ jobs: uses: charmbracelet/meta/.github/workflows/build.yml@main codecov: - strategy: - matrix: - go-version: [~1.18, ^1] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v3 + - uses: actions/setup-go@v3 with: - go-version: ${{ matrix.go-version }} - - - name: Build - run: go build -v ./... - - - name: Test - run: go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -timeout 5m - + go-version: '^1' + cache: true + - run: go test -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt ./... -timeout 5m - uses: codecov/codecov-action@v3 with: file: ./coverage.txt