fix typing errors and add CSV import tests #444
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
| name: E2E Tests | |
| on: | |
| push: | |
| branches: [develop] | |
| pull_request: | |
| branches: [develop] | |
| jobs: | |
| e2e: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./meta_configurator | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| - name: Cache npm dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| meta_configurator/node_modules | |
| key: ${{ runner.os }}-node-${{ hashFiles('meta_configurator/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Cache Playwright browsers | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: ${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-playwright- | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build | |
| run: npm run build --if-present | |
| - name: Install Playwright Browsers (if not cached) | |
| run: npx playwright install --with-deps | |
| - name: Start dev server and run Playwright tests | |
| run: | | |
| npx start-server-and-test dev http://localhost:5173 test:e2e | |
| - name: Check that report folder exists | |
| run: ls -alh playwright-report || echo "No report generated" | |
| - name: Upload Playwright HTML report | |
| if: always() # ensures upload runs even if tests fail | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-report | |
| path: ${{ github.workspace }}/meta_configurator/playwright-report/ |