Skip to content
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

Merged
merged 4 commits into from
Jan 11, 2022
Merged

Conversation

JimBobSquarePants
Copy link
Member

@JimBobSquarePants JimBobSquarePants commented Jan 10, 2022

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

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

@JimBobSquarePants JimBobSquarePants added this to the 2.0.0 milestone Jan 10, 2022
@JimBobSquarePants JimBobSquarePants requested a review from a team January 10, 2022 05:36
jobs:
Build:
strategy:
matrix:
Copy link
Member

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}}

Copy link
Member Author

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

- cron: '0 2 * * 2,4'
jobs:
Build:
strategy:
Copy link
Member

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.

Copy link
Member Author

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?

Copy link
Member Author

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.

@JimBobSquarePants JimBobSquarePants requested review from dlemstra and a team January 10, 2022 08:29
Comment on lines -47 to -50
- os: ubuntu-latest
framework: netcoreapp3.1
runtime: -x64
codecov: true
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@JimBobSquarePants
Copy link
Member Author

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.

@JimBobSquarePants JimBobSquarePants merged commit eb5c71b into master Jan 11, 2022
@JimBobSquarePants JimBobSquarePants deleted the js/scheduled-codecov branch January 11, 2022 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants