diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml new file mode 100644 index 000000000..ab33c8ce8 --- /dev/null +++ b/.github/workflows/playwright.yml @@ -0,0 +1,51 @@ +name: Playwright Tests +on: + push: + branches: [main] + pull_request: + branches: [main] +jobs: + test: + timeout-minutes: 60 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + - name: Install dependencies + run: npm ci + + - name: Cache node modules + id: cache-npm + uses: actions/cache@v3 + env: + cache-name: cache-node-modules + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ~/.npm + key: ${{ hashFiles('**/package-lock.json') }} + + - if: ${{ steps.cache-npm.outputs.cache-hit == 'false' }} + name: List the state of node modules + continue-on-error: true + run: npm list + + - name: Install + run: npm install + + - name: CI + run: npm run ci + env: + CI: true + + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - name: Run Playwright tests + run: npx playwright test + - uses: actions/upload-artifact@v4 + if: always() + with: + name: playwright-report + path: playwright-report/ + retention-days: 30 diff --git a/.gitignore b/.gitignore index 0bf2afcbb..ccb5fff11 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,6 @@ out npm-debug.log* yarn-debug.log* yarn-error.log* + +playwright-report/ +test-results/ \ No newline at end of file diff --git a/.prettierignore b/.prettierignore index dc3086bca..633d114ae 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,8 @@ +<<<<<<< Updated upstream projects/src/samples/project_06/04_pong_asm.ts web/public/pico.min.css +======= +simulator/src/projects/project_06/04_pong.ts +simulator/src/projects/project_06/04_pong_asm.ts +>>>>>>> Stashed changes web/src/locales \ No newline at end of file diff --git a/components/src/runbar.tsx b/components/src/runbar.tsx index 08807357e..147bd2d8f 100644 --- a/components/src/runbar.tsx +++ b/components/src/runbar.tsx @@ -71,6 +71,7 @@ export const Runbar = (props: {