added script for packaging on mac #129
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: Playwright Tests | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| test: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: gcs | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - name: Install dependencies | |
| working-directory: gcs | |
| run: npm install -g yarn && yarn | |
| - name: Install Playwright Browsers | |
| working-directory: gcs | |
| run: yarn playwright install --with-deps | |
| - name: Run FGCS frontend | |
| run: yarn dev:test & | |
| - name: Run Playwright tests | |
| uses: coactions/setup-xvfb@v1 | |
| with: | |
| working-directory: gcs | |
| run: yarn playwright test | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: playwright-report | |
| path: playwright-report/ | |
| retention-days: 30 |