diff --git a/tests/.eslintrc.js b/.eslintrc.js similarity index 100% rename from tests/.eslintrc.js rename to .eslintrc.js diff --git a/.github/workflows/coding-style.yml b/.github/workflows/coding-style.yml index 964b0c311..6638a39f2 100644 --- a/.github/workflows/coding-style.yml +++ b/.github/workflows/coding-style.yml @@ -29,3 +29,11 @@ jobs: - run: composer create-project nette/coding-standard temp/coding-standard ^3 --no-progress - run: php temp/coding-standard/ecs check src tests + + + eslint: + name: ESLint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: npx eslint src/assets/netteForms.js diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index aa386a1e9..dfc3b0933 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -58,3 +58,15 @@ jobs: - env: COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: php php-coveralls.phar --verbose --config tests/.coveralls.yml + + + jasmine: + name: JavaScript tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: npm install -g karma-cli + - working-directory: tests/netteForms + run: npm install + - working-directory: tests/netteForms + run: karma start