Skip to content

Commit

Permalink
Merge pull request #78 from isinyaaa/codecov-trig
Browse files Browse the repository at this point in the history
GHA: require codecov token explicitly
  • Loading branch information
isinyaaa authored Jun 27, 2024
2 parents ecaeffa + af6ba5f commit 8d6ab38
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ name: Build
on:
push:
branches:
- 'main'
- "main"
pull_request:
paths-ignore:
- 'LICENSE*'
- 'DOCKERFILE*'
- '**.gitignore'
- '**.md'
- '**.txt'
- '.github/ISSUE_TEMPLATE/**'
- '.github/dependabot.yml'
- 'docs/**'
- 'scripts/**'
- "LICENSE*"
- "DOCKERFILE*"
- "**.gitignore"
- "**.md"
- "**.txt"
- ".github/ISSUE_TEMPLATE/**"
- ".github/dependabot.yml"
- "docs/**"
- "scripts/**"
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.19'
go-version: "1.19"
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
Expand Down Expand Up @@ -51,9 +51,8 @@ jobs:
- name: Unit tests
run: make test-cover
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.0.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
uses: codecov/codecov-action@v4.5.0
with:
files: coverage.txt
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
5 changes: 2 additions & 3 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,12 @@ jobs:
nox --python=${{ matrix.python }}
fi
- name: Upload coverage report
uses: codecov/codecov-action@v4.0.1
uses: codecov/codecov-action@v4.5.0
if: always() && matrix.session == 'tests'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload documentation
if: matrix.session == 'docs-build'
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 8d6ab38

Please sign in to comment.