From b2365adee59c998c80a234c9787503a90a16e8bf Mon Sep 17 00:00:00 2001 From: Eleftheria Tsakanika <118540876+PTheocharis@users.noreply.github.com> Date: Sat, 8 Jun 2024 11:33:06 +0300 Subject: [PATCH] Added jest-lint-test to workflows and improved it --- .github/workflows/js-lint-test.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/js-lint-test.yml diff --git a/.github/workflows/js-lint-test.yml b/.github/workflows/js-lint-test.yml new file mode 100644 index 000000000..8615c5e3c --- /dev/null +++ b/.github/workflows/js-lint-test.yml @@ -0,0 +1,36 @@ +name: JS Lint and Test + +on: + push: + branches: + - master + - 'feature/*' + pull_request: + branches: + - master + +jobs: + lint-and-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '14' + + - name: Install dependencies + run: npm install + + - name: Run JSLint + run: npx jslint "**/*.js" + continue-on-error: true + + - name: Run Jest + run: npx jest + + - name: Run npm test + run: npm test