-
Notifications
You must be signed in to change notification settings - Fork 7
76 lines (72 loc) · 3.15 KB
/
nodejs.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Node.js CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
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
env:
CI: true
FEATURE_SHOULD_SEND_MESSAGE_TO_AUTHOR: true
NEWSLETTER_HASH_SECRET: fakenewslettersecret
SHOULD_SEND_NL: true
OVH_APP_KEY: fakeovhkey
OVH_APP_SECRET: fakeovhsecret
OVH_CONSUMER_KEY: fakeconsumerkey
SESSION_SECRET: fakesessionsecret
CHAT_WEBHOOK_URL_SECRETARIAT: https://example.com
CHAT_WEBHOOK_URL_GENERAL: https://example.com
CHAT_WEBHOOK_URL_DINUM: https://example.com
CHAT_WEBHOOK_URL_GIP: https://example.com
MATTERMOST_BOT_TOKEN: faketoken
MATTERMOST_INVITE_ID: fakeid
MAIL_PASS: fakepass
MAIL_USER: fakeuser
MAIL_SENDER: fake@localhost
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
HOSTNAME: localhost:8100
HASH_SALT: fakesaltfortestenv
GITHUB_FORK: dummy-github-fork
MAILING_LIST_NEWSLETTER: 0
REDIS_URL: "dummy-url"
- run: npm run test
env:
CI: true
FEATURE_SHOULD_SEND_MESSAGE_TO_AUTHOR: true
NEWSLETTER_HASH_SECRET: fakenewslettersecret
SHOULD_SEND_NL: true
OVH_APP_KEY: fakeovhkey
OVH_APP_SECRET: fakeovhsecret
OVH_CONSUMER_KEY: fakeconsumerkey
SESSION_SECRET: fakesessionsecret
CHAT_WEBHOOK_URL_SECRETARIAT: https://example.com
CHAT_WEBHOOK_URL_GENERAL: https://example.com
CHAT_WEBHOOK_URL_DINUM: https://example.com
CHAT_WEBHOOK_URL_GIP: https://example.com
MATTERMOST_BOT_TOKEN: faketoken
MATTERMOST_INVITE_ID: fakeid
MAIL_PASS: fakepass
MAIL_USER: fakeuser
MAIL_SENDER: fake@localhost
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
HOSTNAME: localhost:8100
HASH_SALT: fakesaltfortestenv
GITHUB_FORK: dummy-github-fork
MAILING_LIST_NEWSLETTER: 0
REDIS_URL: "dummy-url"
PASSWORD_ENCRYPT_KEY: bc827f21bda5d288e35f190d44edb8cdc98a3259c5beac90bcbb6c98de4a89e7