chore(deps-dev): bump follow-redirects from 1.15.2 to 1.15.4 #852
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: Tests pipeline | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-verion: [16.x] | |
medusajs-version: [1.7.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: 'install deps' | |
run: npm i | |
- name: 'run unit tests' | |
run: npm run test:ci --legacy-peer-deps | |
env: | |
MEDUSAJS_VERSION: ${{ matrix.medusajs-version }} | |
integration-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-verion: [16.x] | |
medusajs-version: [1.7.x] | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_USER: postgres | |
POSTGRES_DB: medusa-extender | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- 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: 'run integration tests' | |
run: npm run test:integration:ci | |
env: | |
MEDUSAJS_VERSION: ${{ matrix.medusajs-version }} | |
DB_PASSWORD: postgres | |
IS_CI: true |