name: autofix.ci

on:
  pull_request:
    branches:
      - main

jobs:
  test:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
      - run: corepack enable

      - uses: actions/setup-node@v4
        with:
          node-version: 18
          cache: "pnpm"

      - run: pnpm install

      - run: pnpm exec playwright install

      - run: pnpm prepare

      - name: Browser tests
        run: pnpm test:browser --update-snapshots

      - uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c