-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 830 Bytes
/
check.yml
File metadata and controls
39 lines (30 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: 'Verificação básica de código'
on:
push:
branches:
- 'main'
- 'feat/*'
jobs:
basic-check:
runs-on: ubuntu-latest
env:
DATABASE_NAME: ${{ secrets.DATABASE_NAME }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
steps:
- uses: actions/checkout@v4
- name: Subir o Node
uses: actions/setup-node@v4
with:
node-version: '20.12.2'
- name: Instalar as dependências
run: npm install
- name: Rodar o ESLint
run: npm run lint
- name: Rodar os testes unitários
run: npm run test:unit
- name: Subir o Postgres
run: npm run docker:up:postgres
- name: Rodar os testes de integração
run: npm run test:int
- name: Parar o Postgres
run: npm run docker:down:postgres