dev-ut-stage.js.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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: Node.js CI
  4. on:
  5. push:
  6. branches: [ "dev" ]
  7. pull_request:
  8. branches: [ "dev" ]
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. strategy:
  13. matrix:
  14. node-version: [14.x, 16.x]
  15. # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
  16. steps:
  17. - uses: actions/checkout@v3
  18. - name: Use Node.js ${{ matrix.node-version }}
  19. uses: actions/setup-node@v3
  20. with:
  21. node-version: ${{ matrix.node-version }}
  22. cache: 'npm'
  23. cache-dependency-path: '**/package-lock.json'
  24. - run: npm ci
  25. working-directory: ./frontend
  26. - run: npm run build --if-present
  27. working-directory: ./frontend
  28. - run: npm run test:ci
  29. working-directory: ./frontend
  30. - run: npm run lint:css
  31. working-directory: ./frontend
  32. - run: npm run lint:style
  33. working-directory: ./frontend