From a294381d9e07ea5f34749bc0935f23f598ab196c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 22 Aug 2024 00:37:10 +0800 Subject: [PATCH] feat: optimize ci --- .github/workflows/codecov.yml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 209d618..b7a1670 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -5,19 +5,6 @@ on: - master pull_request: jobs: - codecov: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: 'stable' - - name: Install dependencies - run: go mod tidy - - name: Run tests with coverage - run: go test -timeout 1h -coverprofile="coverage.out" ./... - - name: Upload coverage report to Codecov - uses: codecov/codecov-action@v4 - with: - file: ./coverage.out - token: ${{ secrets.CODECOV }} + test: + uses: goravel/.github/.github/workflows/codecov.yml@master + secrets: inherit