Skip to content

Commit

Permalink
Add audit-fix script & workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zaelgohary committed Jun 12, 2024
1 parent a4f899e commit 9e24b8b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/audit_fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Full Clients Audit Fix

on:
push:
branches: [development, development_2.6]
pull_request:
branches: [development, development_2.6]

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"

- name: Install
run: yarn
- name: Audit Fix
run: npm run audit-fix
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"prepare": "husky install",
"lint": "eslint -c .eslintrc.json . --fix",
"check-eslint": "eslint -c .eslintrc.json .",
"check-prettier": "prettier .prettierrc ."
"check-prettier": "prettier .prettierrc .",
"audit-fix": "npm audit fix"
},
"lint-staged": {
"*.{js,jsx,ts,tsx,css,scss,svelte,vue}": "eslint -c .eslintrc.json --fix",
Expand Down

0 comments on commit 9e24b8b

Please sign in to comment.