fix(ci): исправлен тест Uninstall для работы с race detector #74
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: coverage | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| contents: write | |
| jobs: | |
| test-and-upload: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22.x' | |
| cache: true | |
| - name: Create placeholder _web directories | |
| run: | | |
| mkdir -p cmd/network-debugger-web/_web cmd/wsapp/_web | |
| touch cmd/network-debugger-web/_web/.gitkeep cmd/wsapp/_web/.gitkeep | |
| - name: Run tests and generate coverage badge | |
| run: | | |
| go version | |
| bash scripts/coverage.sh | |
| - name: Prepare coverage badge for deployment | |
| run: | | |
| mkdir -p .gh-pages | |
| cp coverage.json .gh-pages/ | |
| - name: Deploy coverage badge to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| if: github.ref == 'refs/heads/main' | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: .gh-pages | |
| publish_branch: gh-pages | |
| keep_files: false | |
| enable_jekyll: false | |
| allow_empty_commit: false | |