-
Notifications
You must be signed in to change notification settings - Fork 19
49 lines (37 loc) · 1.05 KB
/
push.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Continuous Integration
on:
push:
branches:
- master
pull_request:
jobs:
test-and-build:
name: 'Test & build'
runs-on: buildjet-4vcpu-ubuntu-2204
timeout-minutes: 30
steps:
- name: 'Checkout the repository'
uses: actions/checkout@v4
- name: 'Setup Node.JS'
uses: actions/setup-node@v4
with:
node-version: '20.9'
- name: 'Cache dependencies'
uses: buildjet/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
- name: 'Install dependencies'
run: yarn install --frozen-lockfile
- name: 'Migrate database'
run: yarn prisma migrate deploy --preview-feature
- name: 'Run tests'
run: yarn test --coverage
- name: 'Save test coverage'
uses: codecov/codecov-action@v4
- name: 'Check code formatting'
run: yarn format:check
- name: 'Run linter'
run: yarn lint
- name: 'Build package'
run: yarn build