-
Notifications
You must be signed in to change notification settings - Fork 9
33 lines (27 loc) · 1013 Bytes
/
review.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
33
name: Review
on: [push, pull_request]
jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install
- name: Run linters
run: yarn lint
- name: Run tests
run: |
docker run --rm -d -p 5432:5432 -e POSTGRES_DB=db -e POSTGRES_USER=user -e POSTGRES_PASSWORD=password postgres
docker run --rm -d -p 11211:11211 memcached
docker run --rm -d -p 6379:6379 redis
yarn prisma generate --schema ./test/prisma/schema.prisma
yarn prisma migrate dev --schema ./test/prisma/schema.prisma
yarn test
env:
DATABASE_URL: postgresql://user:password@localhost:5432/db
- name: Publish test coverage
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage/clover.xml