generated from SGFGOV/medusa-plugin-starter-ts
-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.12 KB
/
medusa-plugin-whatsapp.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
name: medusa-plugin-whatsapp
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
unit-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-verion: [16.x]
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v2.3.5
with:
fetch-depth: 0
- name: Setup Node.js environment
uses: actions/setup-node@v3.1.1
with:
node-version: ${{ matrix.node-verion }}
- name: 'yarn install'
#working-directory: ./
run: yarn
- name: 'run build'
#working-directory: ./
run: yarn run build
- name: 'run unit tests'
env:
TWILIO_AUTH_SID: ${{secrets.TWILIO_AUTH_SID}}
TWILIO_AUTH_TOKEN: ${{secrets.TWILIO_AUTH_TOKEN}}
TEST_SEND_NUMBER: ${{secrets.TEST_SEND_NUMBER}}
TEST_RECEIVER_NUMBER: $${{secrets.TEST_RECEIVER_NUMBER}}
working-directory: ../medusa-plugin-whatsapp
run: yarn run test