From 5986f26e0b4e8d1f3e30eb6bf1517a5f951b2a7b Mon Sep 17 00:00:00 2001 From: Calvin Cestari Date: Mon, 4 Dec 2023 11:59:06 -0800 Subject: [PATCH] Adds frontend bundle validation to CI --- .github/workflows/ci-tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 079bc0444..564a6651c 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -207,6 +207,31 @@ jobs: shell: bash run: | ./scripts/run-test-codegen-configurations.sh -t + + verify-frontend-bundle-latest: + runs-on: macos-13 + needs: [changes] + if: ${{ needs.changes.outputs.codegen == 'true' }} + timeout-minutes: 5 + name: Verify Frontend Bundle Latest - macOS + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Install Node packages + shell: bash + working-directory: apollo-ios-codegen/Sources/GraphQLCompiler/JavaScript + run: | + npm install + - name: Rollup Bundle + shell: bash + working-directory: apollo-ios-codegen/Sources/GraphQLCompiler/JavaScript + run: | + npm install --global rollup + sh ./auto_rollup.sh + - name: Verify Latest + shell: bash + run: | + git diff --exit-code run-cocoapods-integration-tests: runs-on: macos-13