diff --git a/.github/workflows/principal.yml b/.github/workflows/principal.yml new file mode 100644 index 0000000..7ca42ca --- /dev/null +++ b/.github/workflows/principal.yml @@ -0,0 +1,29 @@ +name: Commit e PR - Principal + +on: + pull_request: + branches: [ principal ] + +jobs: + testes-unitarios: + permissions: + checks: write + pull-requests: write + contents: write + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2-beta + with: + node-version: '16' + - uses: ArtiomTr/jest-coverage-report-action@v2 + id: coverage + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + test-script: yarn testes-unitarios + package-manager: yarn + output: report-markdown + - uses: marocchino/sticky-pull-request-comment@v2 + with: + message: ${{ steps.coverage.outputs.report }}