Update action.yml

This commit is contained in:
Philip Korsholm
2021-10-21 14:11:54 +02:00
committed by GitHub
parent 0993e18481
commit 40d7cb2109

View File

@@ -3,22 +3,22 @@ on: [push, pull_request]
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.5
with:
fetch-depth: 0
- name: Setup Node.js environment
uses: actions/setup-node@v2.4.1
with:
node-version: "14"
cache: "yarn"
node-version: '14'
cache: 'yarn'
- name: Assert changed
run: ./scripts/assert-changed-files-actions.sh "packages/*|(e2e|integration)-tests/*|yarn.lock"
run: ./scripts/assert-changed-files.sh "packages"
- name: Bootstrap packages
uses: ./.github/actions/cache-bootstrap
with:
@@ -27,11 +27,11 @@ jobs:
- name: Run unit tests
run: node --max-old-space-size=2048 ./node_modules/.bin/jest -w 1
integration-tests:
runs-on: ubuntu-latest
services:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
@@ -44,30 +44,30 @@ jobs:
--health-retries 5
ports:
- 5432:5432
steps:
steps:
- name: Checkout
uses: actions/checkout@v2.3.5
with:
fetch-depth: 0
- name: Setup Node.js environment
uses: actions/setup-node@v2.4.1
with:
node-version: "14"
cache: "yarn"
node-version: '14'
cache: 'yarn'
- name: Bootstrap packages
uses: ./.github/actions/cache-bootstrap
with:
extension: integration-tests
- name: Install dev cli
run: sudo npm i -g medusa-dev-cli
- name: Set path to medusa repo
run: medusa-dev --set-path-to-repo `pwd`
- name: Force install
run: medusa-dev --force-install
working-directory: integration-tests/api
@@ -75,9 +75,11 @@ jobs:
- name: Build integration tests
run: yarn build
working-directory: integration-tests/api
- name: Run integration tests
run: yarn test
working-directory: integration-tests/api
env:
env:
DB_PASSWORD: postgres