From 0c4f4cc32d4b36a1dda4b201d1a49d39520eb8bc Mon Sep 17 00:00:00 2001 From: Ya Hui Liang <46517115@qq.com> Date: Fri, 28 Jul 2023 18:59:20 +0800 Subject: [PATCH] Delete workflows --- .github/workflows | 55 ----------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 .github/workflows diff --git a/.github/workflows b/.github/workflows deleted file mode 100644 index ab1b46a..0000000 --- a/.github/workflows +++ /dev/null @@ -1,55 +0,0 @@ -name: Go # The name of the workflow that will appear on Github - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -jobs: - - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, windows-latest] - go: [1.16, 1.17] - steps: - - uses: actions/checkout@v2 - - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: ${{ matrix.go }} - - - name: Build - run: go install - - - name: Test - run: | - go test -v -cover ./... -coverprofile coverage.out -coverpkg ./... - go tool cover -func coverage.out -o coverage.out # Replaces coverage.out with the analysis of coverage.out - - - name: Go Coverage Badge - uses: tj-actions/coverage-badge-go@v1 - if: ${{ runner.os == 'Linux' && matrix.go == '1.17' }} # Runs this on only one of the ci builds. - with: - green: 80 - filename: coverage.out - - - uses: stefanzweifel/git-auto-commit-action@v4 - id: auto-commit-action - with: - commit_message: Apply Code Coverage Badge - skip_fetch: true - skip_checkout: true - file_pattern: ./README.md - - - name: Push Changes - if: steps.auto-commit-action.outputs.changes_detected == 'true' - uses: ad-m/github-push-action@master - with: - github_token: ${{ github.token }} - branch: ${{ github.ref }}