Skip to content
Snippets Groups Projects
Unverified Commit 2fab6298 authored by Joel Takvorian's avatar Joel Takvorian Committed by GitHub
Browse files

Codecov: remove token, turn off CI failure (#341)

* Codecov: remove token, turn off CI failure

See also: netobserv/network-observability-console-plugin#531

Also, align the workflow file with other repos

* Add codecov on push / align with other repos workflows
parent 0fe7a3de
Branches
Tags
No related merge requests found
name: Pull request checks name: Pull request checks
on: on:
push:
branches: [ 'main', 'release-*' ]
pull_request: pull_request:
branches: [ 'main', 'release-*' ] branches: [ '*' ]
jobs: jobs:
test: test:
...@@ -30,10 +28,8 @@ jobs: ...@@ -30,10 +28,8 @@ jobs:
- name: Report coverage - name: Report coverage
if: ${{ matrix.go == '1.21' }} if: ${{ matrix.go == '1.21' }}
uses: codecov/codecov-action@v4 uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with: with:
files: ./cover.out files: ./cover.out
flags: unittests flags: unittests
fail_ci_if_error: true fail_ci_if_error: false
verbose: true verbose: true
...@@ -37,3 +37,30 @@ jobs: ...@@ -37,3 +37,30 @@ jobs:
run: | run: |
MULTIARCH_TARGETS="${{ env.WF_MULTIARCH_TARGETS }}" IMAGE_ORG=${{ env.WF_ORG }} VERSION=${{ env.WF_VERSION }} make images MULTIARCH_TARGETS="${{ env.WF_MULTIARCH_TARGETS }}" IMAGE_ORG=${{ env.WF_ORG }} VERSION=${{ env.WF_VERSION }} make images
MULTIARCH_TARGETS="${{ env.WF_MULTIARCH_TARGETS }}" IMAGE_ORG=${{ env.WF_ORG }} VERSION=${{ env.short_sha }} OCI_BUILD_OPTS="--label quay.expires-after=2w" make images MULTIARCH_TARGETS="${{ env.WF_MULTIARCH_TARGETS }}" IMAGE_ORG=${{ env.WF_ORG }} VERSION=${{ env.short_sha }} OCI_BUILD_OPTS="--label quay.expires-after=2w" make images
codecov:
name: Codecov upload
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.21']
steps:
- name: install make
run: sudo apt-get install make
- name: set up go 1.x
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: checkout
uses: actions/checkout@v3
- name: Test
run: make test
- name: Report coverage
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./cover.out
flags: unittests
fail_ci_if_error: true
verbose: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment