-
Notifications
You must be signed in to change notification settings - Fork 10
51 lines (45 loc) · 1.52 KB
/
node.js.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
50
51
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Setup PostgreSQL
uses: Harmon758/[email protected]
with:
postgresql db: postgres
postgresql user: postgres
postgresql password: postgres
- run: npm install
- run: npm run build --if-present
- run: npm test
env:
CI: true
OVH_ROOM_APP_KEY: aaaaaaaaa
OVH_ROOM_APP_SECRET: bbbbbbbbb
OVH_ROOM_CONSUMER_KEY: ccccccccc
OVH_ROOM_ACCOUNT_NUMBER: dddddddd
OVH_ROOM_PHONE_NUMBER: 0033122334455
MAIL_PASS: fakepass
MAIL_SERVICE: debug
MAIL_USER: fakeuser
MAIL_SENDER_EMAIL: [email protected]
SECRET: fakesessionsecret
ENCRYPT_SECRET: un_secret_avec_exactement_64_bit
FEATURE_WEB_ACCESS: true
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
AFTER_MEETING_SURVEY_URL: https://startupdetat.typeform.com/to/R5uC1b0k