Skip to content

Commit

Permalink
Merge pull request #1 from Matheuscara/github-actions/test
Browse files Browse the repository at this point in the history
GitHub actions/test
  • Loading branch information
Matheuscara committed Apr 3, 2024
2 parents dc46ccc + cd90897 commit 718e133
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 1,867 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,25 @@ on: [pull_request, push]

# Define as etapas que compõem o fluxo de trabalho
jobs:
# nome do trabalho
# Nome do trabalho
ci-angular-workflow:
runs-on: ubunto-latest
runs-on: ubuntu-latest
# Define as etapas que compõem o trabalho
steps:
# Chona o repositorio com a action ja disponivel do github checkout
- uses: actions/checkout@v2
# instala o node
# Clona o repositório com a action já disponível do GitHub Checkout
- uses: actions/checkout@v3
# Instala o Node.js
- name: Using Node.js
uses: actions/setup-node@v2
# Passando argumentos para a action
with:
node-version: 20.
node-version: '20.x' # Altere para a versão do Node.js que seu projeto utiliza
# Rodando a action manualmente
- name: run install, build and test
- name: run install, build
# Rodando os comandos npm install, npm run build e npm run test
run: |
npm install
npm run build
npm run test
- name: run tests
# Rodando o comando npm run test
run: npm run test:prod
Loading

0 comments on commit 718e133

Please sign in to comment.