From de1c4fa73f08834a3d38e5538bb9e14ab5194bb7 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Thu, 4 Jan 2024 05:33:48 +0000 Subject: [PATCH] feat: Add npm audit fix step to GitHub Actions wor --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000000..987996d19c6d2 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: '12.x' + + - name: Install dependencies + run: npm install + + - name: Fix vulnerable dependencies + run: npm audit fix + + - name: Run tests + run: npm run test