name: CI [web-client]

on:
  pull_request:
    branches: [main]
    paths:
      - 'packages/web-client/**'
      - 'packages/boxel/**'
      - 'packages/cardpay-sdk/**'
      - 'packages/did-resolver/**'
      - 'packages/test-support/**'
      - 'packages/eslint-config/**'
      - '.github/workflows/pr-web-client.yml'
      - 'package.json'
      - 'yarn.lock'

jobs:
  test:
    name: Build & Test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - uses: volta-cli/action@v1
      - name: Set up yarn cache
        uses: actions/cache@v2
        with:
          path: ~/.cache/yarn
          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
          restore-keys: |
            ${{ runner.os }}-yarn-
      - run: yarn --prefer-offline
      - run: yarn test:web-client

name: CI [web-client]

on:
  pull_request:
    paths:
      - 'packages/web-client/**'
      - 'packages/boxel/**'
      - 'packages/cardpay-sdk/**'
      - 'packages/did-resolver/**'
      - 'packages/test-support/**'
      - 'packages/eslint-config/**'
      - '.github/workflows/pr-web-client.yml'
      - 'package.json'
      - 'yarn.lock'

jobs:
  test:
    name: Build & Test
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - uses: volta-cli/action@v1
      - name: Set up yarn cache
        uses: actions/cache@v2
        with:
          path: ~/.cache/yarn
          key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
          restore-keys: |
            ${{ runner.os }}-yarn-
      - run: yarn --prefer-offline
      - run: yarn test:web-client

Remove branch filter for PR tests
web: Remove branch filter for PR tests
