From e87e6d18f8b8493f4ac23a25819206697793ed54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20C=C4=83uti=C8=99anu?= Date: Tue, 3 Dec 2024 17:05:40 +0200 Subject: [PATCH 1/2] run automatically on fern generated code changes PRs --- .github/workflows/end2end_suites.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/end2end_suites.yml b/.github/workflows/end2end_suites.yml index 275ed25e1e..2ab684e193 100644 --- a/.github/workflows/end2end_suites.yml +++ b/.github/workflows/end2end_suites.yml @@ -7,13 +7,16 @@ on: type: choice description: 'Choose which test suite to run' required: true - default: 'sanity' + default: 'all_features' options: - all_features - sanity - projects - traces - datasets + pull_request: + paths: + - 'sdks/code_generation/fern/openapi/openapi.yaml' run-name: Appplication E2E tests - ${{ github.event.inputs.suite || 'default' }} @@ -67,7 +70,10 @@ jobs: - name: Run suite run: | - SUITE="${{ github.event.inputs.suite || 'default' }}" + if [ "${{ github.event_name }}" = "pull_request" ]; then + SUITE="all_features" + else + SUITE="${{ github.event.inputs.suite }}" cd ${{ github.workspace }}/tests_end_to_end export PYTHONPATH='.' @@ -89,3 +95,5 @@ jobs: cd ${{ github.workspace }}/deployment/docker-compose docker compose down cd - + + continue-on-error: ${{ github.event_name == 'pull_request' }} From 0a5573b83ce07582b46ccc8ff8c625b324ac25b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20C=C4=83uti=C8=99anu?= Date: Wed, 4 Dec 2024 12:32:57 +0200 Subject: [PATCH 2/2] equals fix --- .github/workflows/end2end_suites.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/end2end_suites.yml b/.github/workflows/end2end_suites.yml index 2ab684e193..35af3d9b76 100644 --- a/.github/workflows/end2end_suites.yml +++ b/.github/workflows/end2end_suites.yml @@ -19,11 +19,11 @@ on: - 'sdks/code_generation/fern/openapi/openapi.yaml' -run-name: Appplication E2E tests - ${{ github.event.inputs.suite || 'default' }} +run-name: Appplication E2E tests - ${{ github.event.inputs.suite || github.event.inputs.suite.default }} jobs: run_suite: - name: "Run suite: ${{ github.event.inputs.suite || 'default' }}" + name: "Run suite: ${{ github.event.inputs.suite || github.event.inputs.suite.default }}" runs-on: ubuntu-20.04 steps: @@ -70,7 +70,7 @@ jobs: - name: Run suite run: | - if [ "${{ github.event_name }}" = "pull_request" ]; then + if [ "${{ github.event_name }}" == "pull_request" ]; then SUITE="all_features" else SUITE="${{ github.event.inputs.suite }}"