You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
824 B

  1. name: JavaScript Testing
  2. on:
  3. push:
  4. branches-ignore:
  5. - 'dependabot/**'
  6. paths:
  7. - 'package.json'
  8. - 'yarn.lock'
  9. - '.nvmrc'
  10. - '**/*.js'
  11. - '**/*.snap'
  12. - '.github/workflows/test-js.yml'
  13. pull_request:
  14. paths:
  15. - 'package.json'
  16. - 'yarn.lock'
  17. - '.nvmrc'
  18. - '**/*.js'
  19. - '**/*.snap'
  20. - '.github/workflows/test-js.yml'
  21. jobs:
  22. test:
  23. runs-on: ubuntu-latest
  24. steps:
  25. - name: Clone repository
  26. uses: actions/checkout@v3
  27. - name: Set up Node.js
  28. uses: actions/setup-node@v3
  29. with:
  30. cache: yarn
  31. node-version-file: '.nvmrc'
  32. - name: Install all yarn packages
  33. run: yarn --frozen-lockfile
  34. - name: Jest testing
  35. run: yarn test:jest --reporters github-actions summary