Skip to content

Fix/card

Fix/card #137

Workflow file for this run

name: CI Check
on:
pull_request:
branches:
- main
merge_group:
branches:
- main
jobs:
ci-test:
name: CI Check
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.IDEALJS_BOT_APP_ID }}
private_key: ${{ secrets.IDEALJS_BOT_PRIVATE_KEY }}
- uses: actions/checkout@v3
with:
token: ${{ steps.generate_token.outputs.token }}
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install Dependencies
run: yarn install --immutable
- name: Test Packages
run: yarn workspaces foreach run test
- name: Build Packages
run: yarn workspaces foreach run build
- name: Install Playwright Browsers
run: yarn workspace website playwright install --with-deps
- name: Run Playwright tests
id: e2e
run: yarn workspace website test:e2e
- name: Update Playwright Snapshot
if: ${{ failure() && steps.e2e.conclusion == 'failure' }}
run: yarn workspace website test:e2e -u
- name: Upload playwright-report
uses: actions/upload-artifact@v3
if: always()
with:
path: apps/website/playwright-report/
retention-days: 30
- uses: stefanzweifel/git-auto-commit-action@v4
if: ${{ failure() && steps.e2e.conclusion == 'failure' }}
with:
commit_message: 'chore: update image snapshot'