Fix/updates #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |