Skip to content

Commit

Permalink
Atualização CI.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
M4deN committed Sep 30, 2023
1 parent 7b76268 commit 043b58e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Integração Contínua
name: Integração Contínua Projeto WEB 2

on:
push:
Expand All @@ -7,8 +7,7 @@ on:

jobs:
build:
runs-on: ubuntu-20.04

runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -29,9 +28,8 @@ jobs:
- name: Iniciar Aplicação com Nodemon
run: nodemon index.js &

- name: Esperar a Inicialização
run: sleep 10
- name: Executar ESLint
run: npm run lint

- name: Rodar Testes
run: npm run test

run: npm run test
2 changes: 2 additions & 0 deletions cypress/e2e/Projeto_WEB/API.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ describe('Testes da API', () => {
})
})


it('Deve excluir um livro existente', () => {
cy.request('POST', '/login', {
username: Cypress.env('USERNAME'),
Expand Down Expand Up @@ -235,4 +236,5 @@ describe('Testes da API', () => {
expect(response.status).to.equal(200)
})
})

})

0 comments on commit 043b58e

Please sign in to comment.