Skip to content

Commit

Permalink
Testes unitários removidos e workflow desabilitado. Repensar como tes…
Browse files Browse the repository at this point in the history
…tar esse pacote.
  • Loading branch information
leonelsanchesdasilva committed Aug 16, 2023
1 parent 70c49c2 commit 1ae9c83
Show file tree
Hide file tree
Showing 29 changed files with 56 additions and 2,241 deletions.
110 changes: 55 additions & 55 deletions .github/workflows/principal.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
name: Commit e PR - Principal
# name: Commit e PR - Principal

on:
pull_request:
branches: [ principal ]
# on:
# pull_request:
# branches: [ principal ]

jobs:
testes-delegua:
runs-on: ubuntu-latest
# jobs:
# testes-delegua:
# runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '16'
- name: NPM - Dependências
run: |
sudo npm install
- name: Testes da Linguagem Delégua
run: |
sudo chmod +x ./bin/delegua-ts
sudo npm run testes:delegua:bhaskara
sudo npm run testes:delegua:fibonacci
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2-beta
# with:
# node-version: '16'
# - name: NPM - Dependências
# run: |
# sudo npm install
# - name: Testes da Linguagem Delégua
# run: |
# sudo chmod +x ./bin/delegua-ts
# sudo npm run testes:delegua:bhaskara
# sudo npm run testes:delegua:fibonacci

testes-egua-classico:
runs-on: ubuntu-latest
# testes-egua-classico:
# runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '16'
- name: NPM - Dependências
run: |
sudo npm install
- name: Testes do Dialeto Égua Clássico
run: |
sudo chmod +x ./bin/delegua-ts
sudo npm run testes:egua
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2-beta
# with:
# node-version: '16'
# - name: NPM - Dependências
# run: |
# sudo npm install
# - name: Testes do Dialeto Égua Clássico
# run: |
# sudo chmod +x ./bin/delegua-ts
# sudo npm run testes:egua

testes-unitarios:
permissions:
checks: write
pull-requests: write
contents: write
runs-on: ubuntu-latest
# 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 }}
# 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 }}
1 change: 1 addition & 0 deletions testes/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODO: Repensar testes unitários para o pacote.
5 changes: 0 additions & 5 deletions testes/__mocks__/estatistica.ts

This file was deleted.

5 changes: 0 additions & 5 deletions testes/__mocks__/fisica.ts

This file was deleted.

5 changes: 0 additions & 5 deletions testes/__mocks__/matematica.ts

This file was deleted.

170 changes: 0 additions & 170 deletions testes/avaliador-sintatico.test.ts

This file was deleted.

Loading

0 comments on commit 1ae9c83

Please sign in to comment.