karma-tests.yml 948 B

12345678910111213141516171819202122232425262728293031323334
  1. # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
  2. # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
  3. name: CI Tests
  4. on:
  5. push:
  6. branches: [ master ]
  7. pull_request:
  8. branches: [ master ]
  9. workflow_dispatch:
  10. jobs:
  11. build:
  12. runs-on: ubuntu-latest
  13. env:
  14. DISPLAY: :99.0
  15. strategy:
  16. matrix:
  17. node-version: [22.x]
  18. # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
  19. steps:
  20. - uses: actions/checkout@v4
  21. - name: Use Node.js ${{ matrix.node-version }}
  22. uses: actions/setup-node@v4
  23. with:
  24. node-version: ${{ matrix.node-version }}
  25. cache: 'npm'
  26. - name: Run Karma tests
  27. uses: GabrielBB/xvfb-action@v1
  28. with:
  29. run: make check ARGS=--single-run