chore(deps): bump docker/setup-buildx-action from 5b9cf3909b54a280b6df6eee035755eb1f2fd611 to 37fe631027851001ddb9b187196cc803df7f5f0e #9461
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
| name: Node.js CI | |
| on: | |
| push: | |
| branches: [ main, next ] | |
| pull_request: | |
| branches: [ main, next ] | |
| env: | |
| CYPRESS_CACHE_FOLDER: cypress/cache | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version-file: .nvmrc | |
| - name: Cache Node Modules and Cypress binary | |
| uses: actions/cache@v6 | |
| id: cache-primes | |
| with: | |
| path: | | |
| node_modules | |
| ${{ env.CYPRESS_CACHE_FOLDER }} | |
| key: ${{ runner.os }}-node-and-cypress-${{ hashFiles('package-lock.json') }} | |
| - name: Install dependencies | |
| if: steps.cache-primes.outputs.cache-hit != 'true' | |
| run: npm ci | |
| - name: Lint code for errors only | |
| run: npm run lint-errors | |
| - name: Run all tests | |
| run: npm run test:unit | |
| env: | |
| CI: true | |
| - name: Build SwaggerUI | |
| run: npm run build | |
| - name: Test build artifacts | |
| run: npm run test:artifact | |
| e2e-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| containers: ['+(a11y|security|bugs)/**/*cy.js', 'features/**/+(o|d)*.cy.js', 'features/**/m*.cy.js', 'features/**/!(o|d|m)*.cy.js'] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version-file: .nvmrc | |
| - name: Cache Node Modules and Cypress binary | |
| uses: actions/cache@v6 | |
| id: cache-primes | |
| with: | |
| path: | | |
| node_modules | |
| ${{ env.CYPRESS_CACHE_FOLDER }} | |
| key: ${{ runner.os }}-node-and-cypress-${{ hashFiles('package-lock.json') }} | |
| - name: Install dependencies | |
| if: steps.cache-primes.outputs.cache-hit != 'true' | |
| run: npm ci | |
| - name: Cypress Test | |
| run: npx start-server-and-test cy:start http://localhost:3204 'npm run cy:run -- --spec "test/e2e-cypress/e2e/${{ matrix.containers }}"' |