name: Dashboard CI on: push: paths: - 'app/dashboard/**' branches: [ "master" ] pull_request: paths: - 'app/dashboard/**' jobs: build: env: VITE_BASE_API: /api/ runs-on: ubuntu-latest defaults: run: working-directory: ./app/dashboard steps: - uses: actions/checkout@v4 - name: Use Node.js uses: actions/setup-node@v3 with: node-version: '20.0' cache: 'npm' cache-dependency-path: 'app/dashboard/package-lock.json' - name: Install dependencies run: npm install - name: Lint Dashboard run: npm run lint - name: Build Dashboard run: npm run build --if-present -- --outDir build --base '/dashboard/' - name: Upload a Build Artifact uses: actions/upload-artifact@v4.2.0 with: name: artifact path: app/dashboard/build