From cce9edeb814770af129445a63ebe1dd19a5c4828 Mon Sep 17 00:00:00 2001 From: Leonel Sanches da Silva <53848829+leonelsanchesdasilva@users.noreply.github.com> Date: Sat, 6 Jan 2024 16:05:21 -0800 Subject: [PATCH] Adicionando build para o GitHub, em Pull Requests. --- .github/workflows/principal.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/principal.yml 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 }}