Skip to content

Commit

Permalink
github workflows: added JS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 24, 2023
1 parent f7c617c commit e93cea8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
File renamed without changes.
8 changes: 8 additions & 0 deletions .github/workflows/coding-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 12 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e93cea8

Please sign in to comment.