name: Commit Checks

on: [push, pull_request]

jobs:
  pull-request-checks:
    uses: ./.github/workflows/node-ci.yml
    with:
      # Run e2e tests on:
      # - All commits to PRs to master
      # - All commits to approved PRs to dev
      # - All commits to PR to dev on branches created by dependabot
      e2e: {{ github.event.pull_request }}
      e2e1: "{{ github.event.pull_request && (
        github.base_ref == 'master' ||
        (github.base_ref == 'dev' && github.event.pull_request.reviewDecision == 'approved') ||
        (github.base_ref == 'dev' && startsWith(github.ref_name, 'dependabot/'))
        ) }}"
    secrets: inherit

name: Commit Checks

on: [push, pull_request]

jobs:
  pull-request-checks:
    uses: ./.github/workflows/node-ci.yml
    with:
      # Run e2e tests on:
      # - All commits to PRs to master
      # - All commits to approved PRs to dev
      # - All commits to PR to dev on branches created by dependabot
      e2e: "${{ github.event.pull_request && (
        github.base_ref == 'master' ||
        (github.base_ref == 'dev' && github.event.pull_request.reviewDecision == 'approved') ||
        (github.base_ref == 'dev' && startsWith(github.ref_name, 'dependabot/'))
        ) }}"
    secrets: inherit

Revert "ci(Temporary enable e2e tests):"
Revert "ci(Temporary enable e2e tests):"

This reverts commit e8d66d8e7d717cd53b754bf07ad9e09660017ae5.
