Skip to content

Commit 6c1bcd0

Browse files
authored
Initial release (#1)
1 parent de737e7 commit 6c1bcd0

File tree

15 files changed

+16331
-1748
lines changed

15 files changed

+16331
-1748
lines changed

README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,27 @@ None.
2222

2323
### Common workflow
2424

25-
Ideally, set this up as an initial job for your workflows. For example:
2625
```yaml
27-
on: push
26+
on: pull_request
2827

2928
name: Continuous Integration
3029

3130
jobs:
32-
harden_security:
33-
name: Harden Security
31+
coverage_report:
32+
name: Generate coverage report
33+
needs: testing
3434
runs-on: ubuntu-latest
3535
steps:
36-
- name: Checkout code
37-
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
38-
- name: Ensure SHA pinned actions
39-
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@v1.0.1 # Replace this
36+
- name: Checkout code
37+
uses: actions/checkout@v2
38+
# ... Generate LCOV files or download it from a different job
39+
- name: Report code coverage
40+
uses: zgosalvez/github-actions-report-lcov@v1
41+
with:
42+
coverage-files: coverage/lcov.*.info
43+
minimum-coverage: 90
44+
artifact-name: code-coverage-report
45+
github-token: ${{ secrets.GITHUB_TOKEN }}
4046
```
4147
4248
### Flutter Workflows

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ inputs:
1414
description: 'The minimum coverage to pass the check. Optional. Default: `0` (always passes)'
1515
default: 0
1616
github-token:
17-
description: 'Set the `${{ secrets.GITHUB_TOKEN }}` token to have the action comment the coverage summary in the pull request. This token is provided by Actions, you do not need to create your own token. Optional. Default: ``'
17+
description: 'Set the GitHub token to have the action comment the coverage summary in the pull request. This token is provided by Actions, you do not need to create your own token. Optional. Default: ``'
1818
runs:
1919
using: 'node12'
20-
main: 'dist/index.js'
20+
main: 'dist/main/index.js'
21+
post: 'dist/post/index.js'
2122
branding:
2223
icon: umbrella
2324
color: purple

dist/index.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)