Skip to content

Conversation

@Sheldonsu28
Copy link
Member

In this pull request, a action file for test coverage is added.

@polyteam-bot
Copy link
Member

Scope of work:

https://polyteam.atlassian.net/browse/PE1-4.

@Sheldonsu28 Sheldonsu28 requested a review from jimmy-lan June 3, 2021 23:55
Copy link
Member

@jimmy-lan jimmy-lan left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together! Just some minor problems that require your attention. See comments.

@@ -0,0 +1,43 @@
name: Coverage-test

# Controls when the action will run.
Copy link
Member

Choose a reason for hiding this comment

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

These comments are explaining how GitHub workflow works. Since we are not using this as a tutorial, can you remove these comments?

# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
Copy link
Member

Choose a reason for hiding this comment

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

Would you mind using ubuntu-18.04 to be consistent with other workflows?


# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Copy link
Member

Choose a reason for hiding this comment

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

We should put more thoughts into this comment - try to remove "your".

@@ -0,0 +1,43 @@
name: Coverage-test
Copy link
Member

Choose a reason for hiding this comment

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

It might make more sense to name this file test-coverage.yml, instead of coverage-test. We also have a convention for workflows, so please name this something like CI - Test Coverage if possible.

branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Copy link
Member

Choose a reason for hiding this comment

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

I think a good convention would be to set workflow_dispatch to {}. Otherwise, this looks incomplete (despite it is completed). Do you mind looking this up?

@Sheldonsu28 Sheldonsu28 requested a review from jimmy-lan June 18, 2021 17:29

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Copy link
Member

Choose a reason for hiding this comment

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

Sorry, we still have plenty of comments explaining how GitHub action works. Can you remove them?

@jimmy-lan jimmy-lan requested a review from a team July 7, 2021 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants