-
-
Notifications
You must be signed in to change notification settings - Fork 26
59 lines (53 loc) · 1.5 KB
/
medusa-strapi-integration-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
51
52
53
54
55
56
57
58
59
name: medusa-strapi integration
on:
push:
branches:
- master
- 'release/**'
- development
pull_request:
branches:
- master
- development
jobs:
integration-test:
env:
NODE_ENV: 'test'
APP_KEYS: ${{secrets.APP_KEYS}}
TRANSFER_TOKEN: ${{secrets.TRANSFER_TOKEN}}
API_TOKEN_SALT: ${{secrets.API_TOKEN_SALT}}
ADMIN_JWT_SECRET: ${{secrets.ADMIN_JWT_SECRET}}
MEDUSA_STRAPI_SECRET: ${{secrets.MEDUSA_STRAPI_SECRET}}
## Admin Settings
runs-on: ubuntu-latest
strategy:
matrix:
node-verion: [16.x]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-verion }}
- name: 'yarn install'
working-directory: ./
run: yarn install --frozen-lockfile
- name: 'yarn build '
working-directory: ./
run: yarn run build
- name: 'setup up strapi test environment'
working-directory: ./packages/medusa-strapi
run: yarn run start &
- name: wait for server to start
run: sleep 60s
shell: bash
- name: 'run medusa plugin strapi unit tests'
working-directory: ./packages/medusa-plugin-strapi-ts
run: yarn run test