diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 6649f0a..4018368 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -1,6 +1,8 @@ name: Integration Tests on: + pull_request: + branches: [main] merge_group: types: [checks_requested] workflow_dispatch: @@ -14,33 +16,45 @@ permissions: jobs: integration-tests: + name: integration-tests runs-on: ubuntu-24.04 steps: + - name: PR placeholder + if: github.event_name == 'pull_request' + run: echo "Integration tests run only in the merge queue." + - name: Check out repository + if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' uses: actions/checkout@v5 - name: Set up Node.js + if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' uses: actions/setup-node@v6 with: node-version: 22.22.1 cache: yarn - name: Set up Yarn + if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' run: | corepack enable corepack prepare yarn@1.22.22 --activate - name: Show tool versions + if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' run: | node --version yarn --version - name: Install dependencies + if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' run: yarn install --frozen-lockfile - name: Build package + if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' run: yarn build - name: Run integration tests + if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' run: yarn test:integration