Skip to content

Commit

Permalink
Refactor CI pipeline to include 'developer' branch in test workflow a…
Browse files Browse the repository at this point in the history
…nd update test file listing and execution
  • Loading branch information
thadeucbr committed Sep 30, 2024
1 parent 2d36ef2 commit 446b93a
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- main
- developer
pull_request:
branches:
- main
- developer

jobs:
test:
Expand All @@ -25,16 +27,7 @@ jobs:
run: npm install

- name: List test files
run: find src -name "*.test.js" # Lista arquivos de teste para verificação
run: find src -name "*.test.js"

- name: Run tests
run: npm test # Executa os testes

- name: Generate test coverage
run: npm run coverage

- name: Upload coverage results
uses: actions/upload-artifact@v3
with:
name: coverage-results
path: coverage/ # Ajuste conforme o diretório onde os resultados de cobertura são gerados
run: npm test

0 comments on commit 446b93a

Please sign in to comment.