Skip to content

Commit

Permalink
Merge a615e7e into 46b60ab
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich authored Oct 8, 2024
2 parents 46b60ab + a615e7e commit 3524c94
Show file tree
Hide file tree
Showing 608 changed files with 35,961 additions and 212,012 deletions.
2 changes: 1 addition & 1 deletion .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ targets:
- name: registry
sdks:
npm:@sentry/react-native:
includeNames: /none/
includeNames: /^sentry-react-native-\d.*\.tgz$/
133 changes: 42 additions & 91 deletions .github/workflows/buildandtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,13 @@ jobs:
if: ${{ needs.diff_check.outputs.skip_ci != 'true' }}
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/cache@v4
id: cache
with:
path: node_modules
key: ${{ runner.os }}-${{ github.sha }}
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install Dependencies
if: ${{ steps.cache.outputs['cache-hit'] != 'true' }}
run: yarn install
- name: Test
run: yarn test
Expand All @@ -39,49 +36,32 @@ jobs:
if: ${{ needs.diff_check.outputs.skip_ci != 'true' }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: cache
- run: corepack enable
- uses: actions/setup-node@v4
with:
path: node_modules
key: ${{ runner.os }}-${{ github.sha }}
node-version: 18
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install Dependencies
if: ${{ steps.cache.outputs['cache-hit'] != 'true' }}
run: yarn install
- name: Lint
run: yarn lint

job_lint_sample_new_arch:
name: Lint Sample
runs-on: ubuntu-latest
needs: [diff_check]
if: ${{ needs.diff_check.outputs.skip_ci != 'true' }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: cache
with:
path: samples/react-native/node_modules
key: ${{ runner.os }}-${{ github.sha }}
- name: Install Dependencies
if: steps.cache.outputs['cache-hit'] != 'true'
run: yarn install
working-directory: samples/react-native
- name: Lint Sample
run: yarn lint
working-directory: samples/react-native

job_check_integrity:
name: Check package integrity
runs-on: ubuntu-latest
needs: [diff_check]
if: ${{ needs.diff_check.outputs.skip_ci != 'true' }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: cache
- run: corepack enable
- uses: actions/setup-node@v4
with:
path: node_modules
key: ${{ runner.os }}-${{ github.sha }}
node-version: 18
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install Dependencies
run: yarn install
- name: Save initial lock file
run: cp yarn.lock yarn.lock.initial
- name: Install Dependencies (update lock if necessary)
Expand All @@ -97,112 +77,97 @@ jobs:
if: ${{ needs.diff_check.outputs.skip_ci != 'true' }}
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/cache@v4
id: cache
with:
path: node_modules
key: ${{ runner.os }}-${{ github.sha }}
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install Dependencies
if: ${{ steps.cache.outputs['cache-hit'] != 'true' }}
run: yarn install
- name: Build
run: yarn build
- name: Archive dist
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
path: packages/core/dist
- name: Archive ts3.8
uses: actions/upload-artifact@v4
with:
name: ts3.8
path: ts3.8
path: packages/core/ts3.8
- name: Archive Expo Plugin
uses: actions/upload-artifact@v4
with:
name: expo-plugin
path: plugin/build
path: packages/core/plugin/build
- name: Pack
run: yarn pack
run: yarn build:tarball
- name: Archive Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
path: |
${{ github.workspace }}/*.tgz
${{ github.workspace }}/packages/core/*.tgz
job_type_check:
name: Type Check Typescript 3.8
runs-on: ubuntu-latest
needs: [job_build, diff_check]
if: ${{ needs.diff_check.outputs.skip_ci != 'true' }}
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/cache@v4
id: cache
with:
path: test/typescript/ts3.8/node_modules
key: ${{ runner.os }}-${{ github.sha }}-ts3.8
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install Dependencies
run: yarn install
- name: Download dist
uses: actions/download-artifact@v4
with:
name: dist
path: dist
path: packages/core/dist
- name: Download ts3.8
uses: actions/download-artifact@v4
with:
name: ts3.8
path: ts3.8
path: packages/core/ts3.8
- name: Install Global Dependencies
run: yarn global add yalc
- name: Publish SDK
run: yalc publish
- name: Install SDK
working-directory: test/typescript/ts3.8
run: yalc add @sentry/react-native
- name: Install Dependencies
if: ${{ steps.cache.outputs['cache-hit'] != 'true' }}
working-directory: test/typescript/ts3.8
run: yarn install
run: npm i -g add yalc
- name: Type Check
working-directory: test/typescript/ts3.8
working-directory: dev-packages/type-check
run: yarn type-check

job_circular_dep_check:
name: Circular Dependency Check
runs-on: ubuntu-latest
needs: [job_build, diff_check]
if: ${{ needs.diff_check.outputs.skip_ci != 'true' }}
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Cache Dependencies
uses: actions/cache@v4
id: cache
with:
path: node_modules
key: ${{ runner.os }}-${{ github.sha }}
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install Dependencies
if: ${{ steps.cache.outputs['cache-hit'] != 'true' }}
run: yarn install
- name: Download dist
uses: actions/download-artifact@v4
with:
name: dist
path: dist
path: packages/core/dist
- name: Download Expo Plugin
uses: actions/download-artifact@v4
with:
name: expo-plugin
path: plugin/build
path: packages/core/plugin/build
- name: Run madge
run: yarn circularDepCheck

Expand All @@ -219,28 +184,14 @@ jobs:
dev: [true, false]
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Cache Dependencies
uses: actions/cache@v4
id: cache
with:
path: node_modules
key: ${{ runner.os }}-${{ github.sha }}
- name: Cache Sample Dependencies
uses: actions/cache@v4
id: cache-sample
with:
path: samples/react-native/node_modules
key: ${{ runner.os }}-${{ hashFiles('samples/react-native/yarn.lock') }}
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install Dependencies
if: ${{ steps.cache.outputs['cache-hit'] != 'true' }}
run: yarn install
- name: Install Sample Dependencies
if: ${{ steps.cache-sample.outputs['cache-hit'] != 'true' }}
run: yarn install
working-directory: samples/react-native
- name: Build
run: yarn build
- name: Make Sample Build Directory
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,19 @@ jobs:
--outputPath codegen
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: yarn.lock
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: "adopt"
- name: Gradle cache
uses: gradle/gradle-build-action@v3
- uses: actions/cache@v4
id: cache
with:
path: samples/react-native/node_modules
key: ${{ runner.os }}-${{ github.sha }}
- name: Install Dependencies
if: steps.cache.outputs['cache-hit'] != 'true'
run: |
cd samples/react-native
yarn install
run: yarn install
- name: Codegen
run: ${{ matrix.command }}
Loading

0 comments on commit 3524c94

Please sign in to comment.