From 5edae501da15729e719f72a5630136acc15dfacf Mon Sep 17 00:00:00 2001 From: Philiphil Date: Fri, 4 Oct 2024 11:27:12 +0200 Subject: [PATCH] Delete .github/workflows/main.yml --- .github/workflows/main.yml | 53 -------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index c226a92..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Generate code coverage badge - -on: - pull_request: - branches: - - main - -jobs: - test: - runs-on: ubuntu-latest - name: Update coverage badge - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token. - fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. - - - name: Setup go - uses: actions/setup-go@v4 - with: - go-version-file: 'go.mod' - - - name: Run Test - run: | - go test -v ./... -covermode=count -coverprofile=coverage.out - go tool cover -func=coverage.out -o=coverage.out - - - name: Go Coverage Badge # Pass the `coverage.out` output to this action - uses: tj-actions/coverage-badge-go@v2 - with: - filename: coverage.out - - - name: Verify Changed files - uses: tj-actions/verify-changed-files@v16 - id: verify-changed-files - with: - files: README.md - - - name: Commit changes - if: steps.verify-changed-files.outputs.files_changed == 'true' - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add README.md - git commit -m "chore: Updated coverage badge." - - - name: Push changes - if: steps.verify-changed-files.outputs.files_changed == 'true' - uses: ad-m/github-push-action@master - with: - github_token: ${{ github.token }} - branch: ${{ github.head_ref }}