Skip to content

Conversation

@OR13
Copy link

@OR13 OR13 commented Mar 20, 2023

You will need to give the action permission to write to main:

Settings > Actions > General

Screen Shot 2023-03-20 at 1 56 53 PM

I am not sure if this will work with the matrix approach you have for tests

@OR13
Copy link
Author

OR13 commented Mar 20, 2023

@microsoft-github-policy-service agree

@OR13
Copy link
Author

OR13 commented Mar 20, 2023

@christianpaquin I am not sure this will work with the matrix you have.

Do you want me to make a separate yaml file for coverage, and pin the node version?

- run: npm install
- run: npm run build --if-present
- run: npm test
- run: npm run coverage
Copy link
Author

Choose a reason for hiding this comment

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

may need to move this to a separate file...

Copy link
Contributor

Choose a reason for hiding this comment

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

we'll see; let's try it. Looks like CI ran correctly but badge fail because of branch permission; it might succeed on main (let's see)

*WORK IN PROGRESS*

[![CI](https://github.com/microsoft/bbs-node-reference/actions/workflows/nodejs-ci.yml/badge.svg)](https://github.com/microsoft/bbs-node-reference/actions/workflows/nodejs-ci.yml)
![Branches](./badges/coverage-branches.svg)
Copy link
Author

Choose a reason for hiding this comment

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

The action will create this directory on main, and store latest badge details in it.

Copy link
Contributor

@christianpaquin christianpaquin left a comment

Choose a reason for hiding this comment

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

Great, thanks @OR13

@christianpaquin christianpaquin merged commit e06e029 into microsoft:main Mar 20, 2023
@OR13 OR13 mentioned this pull request Mar 20, 2023
@OR13 OR13 deleted the add-coverage-badges branch March 20, 2023 21:43
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.

2 participants