diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 901d3489..c8379762 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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: @@ -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 diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 4dae9047..43fe960f 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -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