From f445febdc9a1ca18c52156e6bb81800ba1b6848c Mon Sep 17 00:00:00 2001 From: Alek Petuskey Date: Tue, 20 Dec 2022 22:45:03 -0800 Subject: [PATCH] Run integration test on pr approval. (#155) --- .github/workflows/integration.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index f60a738c0..917acd471 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -1,20 +1,22 @@ name: integration-test on: - push: - branches: [ "main" ] + pull_request_review: + types: [submitted] + permissions: contents: read jobs: build: + if: github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'main' runs-on: ubuntu-latest # Specify python/node versions to test against strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11"] node-version: ["15.x"] steps: