feat: teachable machine #683
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: Check pull requests | |
| on: | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| test: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| container: | |
| image: mcr.microsoft.com/playwright:v1.59.1-jammy | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20.x" | |
| registry-url: "https://registry.npmjs.org" | |
| - name: Install node modules | |
| run: pnpm install | |
| - name: Install libsimavr | |
| run: | | |
| apt-get update | |
| apt-get install -y libsimavr2 libsimavrparts1 | |
| - name: Run tests | |
| run: pnpm test | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: playwright-report | |
| path: packages/client/playwright-report/ | |
| retention-days: 30 | |
| - name: Build application | |
| working-directory: ./packages/client | |
| run: | | |
| export NODE_OPTIONS="--max-old-space-size=4096" | |
| pnpm build |