Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,27 @@ None.

### Common workflow

Ideally, set this up as an initial job for your workflows. For example:
```yaml
on: push
on: pull_request

name: Continuous Integration

jobs:
harden_security:
name: Harden Security
coverage_report:
name: Generate coverage report
needs: testing
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
- name: Ensure SHA pinned actions
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@v1.0.1 # Replace this
- name: Checkout code
uses: actions/checkout@v2
# ... Generate LCOV files or download it from a different job
- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v1
with:
coverage-files: coverage/lcov.*.info
minimum-coverage: 90
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
```

### Flutter Workflows
Expand Down
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ inputs:
description: 'The minimum coverage to pass the check. Optional. Default: `0` (always passes)'
default: 0
github-token:
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: ``'
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: ``'
runs:
using: 'node12'
main: 'dist/index.js'
main: 'dist/main/index.js'
post: 'dist/post/index.js'
branding:
icon: umbrella
color: purple
1 change: 0 additions & 1 deletion dist/index.js.map

This file was deleted.

Loading