Fix output path for Admin Portal build. (#1160) #185
This file contains 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_wisdom_console_react/** | |
pull_request: | |
branches: | |
- main | |
paths: | |
- ansible_wisdom_console_react/** | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
env: | |
WORKING_DIRECTORY: ./ansible_wisdom_console_react | |
steps: | |
- name: Checkout commit | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.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}} |