AAP-36512: FIx Admin portal tests fallout due to PF5 and latest Ansib… #252
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: Admin Portal - Build and Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - ansible_ai_connect_admin_portal/** | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - ansible_ai_connect_admin_portal/** | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| env: | |
| WORKING_DIRECTORY: ./ansible_ai_connect_admin_portal | |
| steps: | |
| - name: Checkout commit | |
| uses: actions/checkout@v3 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '21.x' | |
| cache: 'npm' | |
| cache-dependency-path: ${{env.WORKING_DIRECTORY}}/package-lock.json | |
| - name: Install Dependencies | |
| run: npm ci | |
| working-directory: ${{env.WORKING_DIRECTORY}} | |
| - name: Compile | |
| run: npm run build | |
| working-directory: ${{env.WORKING_DIRECTORY}} | |
| - name: Run linter | |
| run: npm run lint | |
| working-directory: ${{env.WORKING_DIRECTORY}} |