Skip to content

Commit

Permalink
Ref: Build samples with the latest Sentry/Capacitor SDK (#513)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
lucas-zimerman authored Dec 18, 2023
1 parent 629160c commit 4b97c4f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml → .github/workflows/buildandtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
key: ${{ needs.job_build.outputs.dependency_cache_key }}
- name: Check build cache
uses: actions/[email protected]
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
Expand Down

0 comments on commit 4b97c4f

Please sign in to comment.