-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (32 loc) · 842 Bytes
/
ci.yml
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
on:
push:
branches:
- "*"
pull_request:
branches:
- main
name: CI
jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-node@v1
with:
node-version: 20
- name: Install Packages
run: npm install
- name: Lint
run: npm run lint
- name: Run Test Containers
run: docker compose -f docker-compose.test.yml up -d
- name: Sleep for 30s
uses: juliangruber/sleep-action@v1
with:
time: 30s
- name: Test
run: export DATABASE_URL=postgres://postgres:[email protected]:5432/postgres && npx prisma generate && npm run test -- --coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3