-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (50 loc) · 1.17 KB
/
jest.yaml
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
name: Jest Tests
env:
PARSE_ENV: "dev"
PARSE_APP_ID: "myAppId"
PARSE_JAVASCRIPT_KEY: "_PLACEHOLDER_"
PARSE_SERVER_URL: "http://localhost:1337/parse"
PUENTE_ENV: "dev"
PUENTE_SMS_EMAIL_API_URL: "http://puentes-messaging-microservice.com"
PUENTE_MANAGE_URL: "https://sample-puente-manage.app/"
SLACK_TOKEN: ""
SLACK_DEV_CHANNEL: ""
SLACK_PROD_CHANNEL: ""
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
jest-testing:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
services:
mongodb:
image: mongo:4.4
ports:
- 27017:27017
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Puente CloudCode Dependencies
run: |
npm install
- name: Lint
run: |
npm run lint
- name: Start App and Test Jest
run: |
npm run start &
sleep 40 &&
npm run test-github-actions