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.

43 lines
862 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. - '**/*.jsx'
  12. - '**/*.snap'
  13. - '.github/workflows/test-js.yml'
  14. pull_request:
  15. paths:
  16. - 'package.json'
  17. - 'yarn.lock'
  18. - '.nvmrc'
  19. - '**/*.js'
  20. - '**/*.jsx'
  21. - '**/*.snap'
  22. - '.github/workflows/test-js.yml'
  23. jobs:
  24. test:
  25. runs-on: ubuntu-latest
  26. steps:
  27. - name: Clone repository
  28. uses: actions/checkout@v3
  29. - name: Set up Node.js
  30. uses: actions/setup-node@v3
  31. with:
  32. cache: yarn
  33. node-version-file: '.nvmrc'
  34. - name: Install all yarn packages
  35. run: yarn --frozen-lockfile
  36. - name: Jest testing
  37. run: yarn test:jest --reporters github-actions summary