-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 1.12 KB
/
feature.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
name: Unit & Integration Tests
on:
pull_request:
branches:
- develop
paths-ignore:
- '*.md'
env:
DATABASE_URL: postgres://postgres:mysecretpassword@localhost:5432/notifications
jobs:
Build:
name: Build Application
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repo
uses: actions/checkout@master
- name: Generate .env files
run: cp .env.example .env
- name: Read .nvmrc
id: nvm
run: echo "name=NVMRC::$(cat .nvmrc)" >> $GITHUB_OUTPUT
- name: Setup node
uses: actions/setup-node@master
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Lint files
run: yarn lint
- name: Build application
run: yarn build
- name: Units Tests
run: yarn jest --ci