From f3e4d2871932cc64709e59d7ff260ef3c0a9a3a5 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Thu, 19 Dec 2024 23:23:57 +0100 Subject: [PATCH] chore: add test action --- .github/workflows/{eslint.yml => test.yml} | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) rename .github/workflows/{eslint.yml => test.yml} (74%) diff --git a/.github/workflows/eslint.yml b/.github/workflows/test.yml similarity index 74% rename from .github/workflows/eslint.yml rename to .github/workflows/test.yml index d847fca..9ea21cb 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/test.yml @@ -10,8 +10,8 @@ on: - cron: '36 3 * * 2' jobs: - eslint: - name: Run eslint scanning + test: + name: Run test runs-on: ubuntu-latest permissions: contents: read @@ -21,14 +21,12 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Install ESLint + - name: Install deps run: | - npm install eslint@8.56.0 - npm install @microsoft/eslint-formatter-sarif@2.1.7 + npm install - - name: Run ESLint - run: npx eslint . - --c eslint.config.mjs + - name: Run Vitest + run: npx vitest . continue-on-error: false - name: Upload analysis results to GitHub