Skip to content

Commit

Permalink
ci codecov: experiment with update
Browse files Browse the repository at this point in the history
Temporarily turn off other auto-triggered workflows and move to codecov
action using newly configured CODECOV_TOKEN secret.
  • Loading branch information
lread committed May 1, 2024
1 parent 85b1396 commit ad03c2a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 38 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,9 @@ jobs:
run: bb test-coverage

- name: Upload Code Coverage Results
run: |
echo "Downloading codecov uploader script"
curl -s https://codecov.io/bash > codecov
echo "Verifying codedov uploader script"
VERSION=$(grep 'VERSION=\".*\"' codecov | cut -d'"' -f2);
for i in 1 256 512
do
sha${i}sum -c --ignore-missing <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM")
done
echo "Uploading to codecov"
bash codecov -f target/coverage/codecov.json
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # optional (default = false)
file: ./target/coverage/codecov.json
token: ${{ secrets.CODECOV_TOKEN }} # required
verbose: true # optional (default = false)
18 changes: 9 additions & 9 deletions .github/workflows/libs-test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Libs Test

on:
# allow this workflow to be called from other workflows, namely: publish
workflow_call:
push:
branches:
- main
pull_request:
branches:
- main
# on:
# # allow this workflow to be called from other workflows, namely: publish
# workflow_call:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main

jobs:
enumerate-libs:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/native-image-test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Native Image Tests

on:
# allow this workflow to be called from other workflows, namely: publish
workflow_call:
push:
branches:
- main
pull_request:
branches:
- main
# on:
# # allow this workflow to be called from other workflows, namely: publish
# workflow_call:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main

jobs:
build:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Unit Tests

on:
# allow this workflow to be called from other workflows, namely: publish
workflow_call:
push:
branches:
- main
pull_request:
branches:
- main
# on:
# # allow this workflow to be called from other workflows, namely: publish
# workflow_call:
# push:
# branches:
# - main
# pull_request:
# branches:
# - main

jobs:
setup:
Expand Down

0 comments on commit ad03c2a

Please sign in to comment.