Update action.yml

This commit is contained in:
Philip Korsholm authored and GitHub committed 2021-10-21 20:58:39 +02:00
1 parent ac55bcd9fd
commit cf6d63c41a
1 file changed
+21 -32
+21 -32
View File
@@ -2,33 +2,38 @@ name: Medusa Pipeline
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
unit-tests: setup:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2.3.5 uses: actions/checkout@v2.3.5
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup Node.js environment - name: Setup Node.js environment
uses: actions/setup-node@v2.4.1 uses: actions/setup-node@v2.4.1
with: with:
node-version: '14' node-version: '14'
cache: 'yarn' cache: 'yarn'
- name: Assert changed - name: Assert changed
run: ./scripts/assert-changed-files-actions.sh "packages" run: ./scripts/assert-changed-files-actions.sh "packages"
- name: Bootstrap packages - name: Bootstrap packages
uses: ./.github/actions/cache-bootstrap uses: ./.github/actions/cache-bootstrap
with: with:
extension: unit-tests extension: unit-tests
unit-tests:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Run unit tests - name: Run unit tests
run: node --max-old-space-size=2048 ./node_modules/.bin/jest -w 1 run: node --max-old-space-size=2048 ./node_modules/.bin/jest -w 1
integration-tests: integration-tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: setup
services: services:
postgres: postgres:
@@ -45,22 +50,6 @@ jobs:
- 5432:5432 - 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'
- name: Bootstrap packages
uses: ./.github/actions/cache-bootstrap
with:
extension: integration-tests
- name: Install dev cli - name: Install dev cli
run: sudo npm i -g medusa-dev-cli run: sudo npm i -g medusa-dev-cli