-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 940 Bytes
/
test.yml
File metadata and controls
43 lines (35 loc) · 940 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
40
41
42
43
name: Testing
on: push
jobs:
test:
environment: env
name: Tests passes
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 7
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
- name: Install modules
run: pnpm i --frozen-lockfile
- name: Build
run: pnpm build
- name: Testing
run: pnpm test
env:
NODE_ENV: "test"
PG_HOST: ${{ vars.PG_HOST }}
PG_PORT: ${{ vars.PG_PORT }}
PG_USER: ${{ vars.PG_USER }}
PG_PASSWORD: ${{ vars.PG_PASSWORD }}
PG_DATABASE: ${{ vars.PG_DATABASE }}
PUBLIC_URL: ${{ vars.PUBLIC_URL }}
JWT_SECRET: ${{ vars.JWT_SECRET }}
PORT: ${{ vars.PORT }}