-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (43 loc) · 1.38 KB
/
test.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
name: Test Coveralls
on:
push:
branches: ['develop']
pull_request:
branches: ['develop']
env:
DBLINK: ${{ secrets.DBLINK }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
TWILIO_AUTH_TOKEN: ${{ secrets.TWILIO_AUTH_TOKEN }}
TWILIO_SERVICE_SID: ${{ secrets.TWILIO_SERVICE_SID }}
TWILIO_PHONE_NUMBER: ${{ secrets.TWILIO_PHONE_NUMBER }}
NODEMAILER_CLIENT_ID: ${{ secrets.NODEMAILER_CLIENT_ID }}
MODEMAILER_CLIENT_SECRET: ${{ secrets.MODEMAILER_CLIENT_SECRET }}
MAILER_REFRESH_ACCESSTOKEN: ${{ secrets.MAILER_REFRESH_ACCESSTOKEN }}
MAILER_ACCESS_TOKEN: ${{ secrets.MAILER_ACCESS_TOKEN }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
USER: ${{ secrets.USER }}
FAKE_TOKEN: ${{ secrets.FAKE_TOKEN }}
SELLER_TOKEN: ${{ secrets.SELLER_TOKEN }}
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: npm install
run: |
npm install
- name: Test with Jest and Generate coverage information
run: |
npm run test
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flags: --debug