From 4b97c4f958c48beb9a71fd34ca2a9fbb59ff0a19 Mon Sep 17 00:00:00 2001 From: LucasZF Date: Mon, 18 Dec 2023 11:27:55 -0300 Subject: [PATCH] Ref: Build samples with the latest Sentry/Capacitor SDK (#513) * rename build to buildandtest. add sample build script * add yalc * add ionic * change run to macos * install angular cli * install rimraf * install packages * test only run yarn install and install yalcs * ionic is required * bad format * Update .github/workflows/buildandtest.yml --- .../workflows/{build.yml => buildandtest.yml} | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) rename .github/workflows/{build.yml => buildandtest.yml} (82%) diff --git a/.github/workflows/build.yml b/.github/workflows/buildandtest.yml similarity index 82% rename from .github/workflows/build.yml rename to .github/workflows/buildandtest.yml index 2761d41e..f7d20015 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/buildandtest.yml @@ -42,6 +42,37 @@ jobs: outputs: dependency_cache_key: ${{ steps.compute_lockfile_hash.outputs.hash }} + job_sample_test: + name: Sample Build Test + needs: job_build + continue-on-error: true + timeout-minutes: 30 + # macos required for the xcode build. + runs-on: macos-latest + steps: + - name: Check out current commit (${{ github.sha }}) + uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + - name: Check dependency cache + uses: actions/cache@v3.3.1 + with: + path: ${{ env.CACHED_DEPENDENCY_PATHS }} + key: ${{ needs.job_build.outputs.dependency_cache_key }} + - name: Check build cache + uses: actions/cache@v3.3.1 + with: + path: ${{ env.CACHED_BUILD_PATHS }} + key: ${{ env.BUILD_CACHE_KEY }} + - name: Install yalc + run: yarn global add yalc + - name: Install Ionic + run: yarn global add @ionic/cli + - name: Install Packages + run: yarn install + - name: Update SDK & build samples + run: yarn bump:samples + job_unit_test: name: Test needs: job_build