-
-
Notifications
You must be signed in to change notification settings - Fork 852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use a scheduled job for codecov #1934
Conversation
.github/workflows/code-coverage.yml
Outdated
jobs: | ||
Build: | ||
strategy: | ||
matrix: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can also be written as:
matrix:
os: ubuntu-latest
runs-on: ${{matrix.os}}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ve just done the minimum amount of changes to make this work. I.E copy/paste/delete
.github/workflows/code-coverage.yml
Outdated
- cron: '0 2 * * 2,4' | ||
jobs: | ||
Build: | ||
strategy: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are mixing indentation sizes? 2 and 4. According to the .editorconfig
this should be 2
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder why format document didn’t fix this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Groan..... Cos format document does seem to exist for yml files in Visual Studio. I'll use VSCode to format both files to 2 spaces.
- os: ubuntu-latest | ||
framework: netcoreapp3.1 | ||
runtime: -x64 | ||
codecov: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we also loose the netcoreapp3.1 PR tests with this change, is that intentional?
I would have thought we we just want to set codecov: false
instead of removing the whole target?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops! You’re right; will fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
I've fixed up all the spotted issues so am gonna merge this. I've got a few backlogged PR's open I want to get merged in without it taking all day. |
Prerequisites
Description
Speed up our CI times by moving code coverage checks to a scheduled workflow. Tue,Thur at 2AM
Note: I've done the bare minimum required to enable this. I didn't want to edit
*.ps1
files.https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows