Merge pull request #652 from exadel-inc/tech/service-util #1025
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
| name: UI Tests | |
| on: | |
| push: | |
| branches: [ master, develop*, release* ] | |
| pull_request: | |
| branches: [ master, develop*, release* ] | |
| workflow_dispatch: | |
| env: | |
| node-version: 20.x | |
| jobs: | |
| ui-lint-main: | |
| name: Linting ui.apps directory ... | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node v${{ env.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'npm' | |
| cache-dependency-path: '**/package-lock.json' | |
| node-version: ${{ env.node-version }} | |
| - name: Install NPM Dependencies | |
| run: npm ci | |
| working-directory: ui.apps | |
| - name: Run Linting & Tests | |
| run: npm run lint | |
| working-directory: ui.apps | |
| ui-lint-website: | |
| name: Linting docs/website directory ... | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node v${{ env.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| cache: 'npm' | |
| cache-dependency-path: '**/package-lock.json' | |
| node-version: ${{ env.node-version }} | |
| - name: Install NPM Dependencies | |
| run: npm ci | |
| working-directory: docs/website | |
| - name: Run ES Lint | |
| run: npm run lint:js | |
| working-directory: docs/website | |
| - name: Run Style Lint | |
| run: npm run lint:css | |
| working-directory: docs/website |