Change prepare script to not run in CI mode and remove --ignore-scripts flag from workflow (#491)

* Change prepare script to not run in CI mode and remove --ignore-scripts flag from workflow

* add release/* to branches for workflows
This commit is contained in:
Dan Orlando 2023-06-13 06:20:47 -07:00 committed by GitHub
parent ee52533339
commit 2003480fed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 6 deletions

View file

@ -2,9 +2,15 @@
name: Backend Unit Tests name: Backend Unit Tests
on: on:
push: push:
branches: [feat/playwright-jest-cicd] branches:
- main
- dev
- release/*
pull_request: pull_request:
branches: [ feat/playwright-jest-cicd ] branches:
- main
- dev
- release/*
jobs: jobs:
tests_Backend: tests_Backend:
name: Run Backend unit tests name: Run Backend unit tests
@ -25,7 +31,7 @@ jobs:
cache: 'npm' cache: 'npm'
- name: Install dependencies - name: Install dependencies
run: npm ci --ignore-scripts run: npm ci
# - name: Install Linux X64 Sharp # - name: Install Linux X64 Sharp
# run: npm install --platform=linux --arch=x64 --verbose sharp # run: npm install --platform=linux --arch=x64 --verbose sharp

View file

@ -2,9 +2,15 @@
name: Frontend Unit Tests name: Frontend Unit Tests
on: on:
push: push:
branches: [main, dev] branches:
- main
- dev
- release/*
pull_request: pull_request:
branches: [main, dev] branches:
- main
- dev
- release/*
jobs: jobs:
tests_frontend: tests_frontend:
name: Run frontend unit tests name: Run frontend unit tests

View file

@ -21,7 +21,7 @@
"test:api": "cd api && npm run test", "test:api": "cd api && npm run test",
"e2e:update": "playwright test --config=e2e/playwright.config.js --update-snapshots", "e2e:update": "playwright test --config=e2e/playwright.config.js --update-snapshots",
"e2e:report": "npx playwright show-report e2e/playwright-report", "e2e:report": "npx playwright show-report e2e/playwright-report",
"prepare": "husky install", "prepare": "test \"$NODE_ENV\" != \"CI\" && husky install",
"format": "prettier-eslint --write \"{,!(node_modules)/**/}*.{js,jsx,ts,tsx}\"" "format": "prettier-eslint --write \"{,!(node_modules)/**/}*.{js,jsx,ts,tsx}\""
}, },
"repository": { "repository": {