-
-
Notifications
You must be signed in to change notification settings - Fork 26
53 lines (45 loc) · 1.3 KB
/
medusa-strapi.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
name: medusa-strapi
on:
push:
branches:
- master
- 'release/**'
- development
pull_request:
branches:
- master
- development
jobs:
unit-test:
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: ./packages/medusa-strapi
run: yarn install --frozen-lockfile
- name: 'yarn install strapi plugin medusajs'
working-directory: ./packages/strapi-plugin-medusajs
run: yarn install --frozen-lockfile
- name: 'yarn build strapi plugin medusajs'
working-directory: ./packages/strapi-plugin-medusajs
run: yarn run build
- name: 'yarn build medusa-strapi'
working-directory: ./packages/medusa-strapi
run: yarn run build
- name: 'run unit tests'
working-directory: ./packages/medusa-strapi
run: yarn run test