From 9ff2984cfcd1c34711a7a17be6ba2a8568fff779 Mon Sep 17 00:00:00 2001 From: RcleydsonR Date: Tue, 23 Aug 2022 21:43:33 -0300 Subject: [PATCH] feat: add test step at CI script --- .github/workflows/CI.yml | 9 +++++---- package.json | 4 +++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7e8ccb65..b5d20ada 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -7,7 +7,7 @@ on: types: [ opened ] jobs: - lint: + test-lint: runs-on: ubuntu-latest defaults: run: @@ -31,7 +31,8 @@ jobs: - name: 📦 Install dependencies run: yarn install --pure-lockfile --non-interactive - - name: 📦 Run lint - run: npx eslint ./src + - name: 📦 Run test + run: yarn test - # Test job + - name: 📦 Run lint + run: yarn lint diff --git a/package.json b/package.json index 247fd219..8d480ff0 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "start:dev": "nodemon index.js", "dev": "node server.js", "test": "jest", - "test:coverage": "jest --coverage" + "test:coverage": "jest --coverage", + "lint": "npx eslint ./src", + "lint:fix": "npx eslint ./src --fix" }, "dependencies": { "@sentry/node": "5.18.0",