Adição do tipo "módulo". Módulos passam a ser resolvidos na avaliação sintática #977
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
# Maneira tradicional de build, sem cobertura. | |
# Usado quando o `jest-coverage-report-action` dá problema. | |
# - name: NPM - Dependências | |
# run: | | |
# sudo npm install | |
# - name: Testes unitários | |
# run: | | |
# sudo npm run testes-unitarios | |
- uses: ArtiomTr/jest-coverage-report-action@v2 | |
id: coverage | |
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'DesignLiquido/delegua' }} | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
test-script: yarn testes-unitarios | |
package-manager: yarn | |
output: report-markdown | |
- uses: marocchino/sticky-pull-request-comment@v2 | |
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'DesignLiquido/delegua' }} | |
with: | |
message: ${{ steps.coverage.outputs.report }} |