Skip to content

Commit

Permalink
Merge pull request #2389 from getsentry/5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich committed Feb 21, 2023
2 parents cbac3f6 + c968ff9 commit d197b5c
Show file tree
Hide file tree
Showing 333 changed files with 42,544 additions and 1,181 deletions.
6 changes: 4 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Ignore build generated dir
dist

# Ignore sample folder
# Ignore standalone apps
sample
sample-new-architecture
test/perf/TestApp*

# Ignore dangerfile
dangerfile.js
dangerfile.js
41 changes: 40 additions & 1 deletion .github/workflows/buildandtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3

with:
node-version: 14
- uses: actions/cache@v3
id: cache
with:
Expand Down Expand Up @@ -42,12 +43,50 @@ jobs:
- name: Lint
run: yarn lint

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

job_check_integrity:
name: Check package integrity
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache
with:
path: node_modules
key: ${{ runner.os }}-${{ github.sha }}
- name: Save initial lock file
run: cp yarn.lock yarn.lock.initial
- name: Install Dependencies (update lock if necessary)
run: yarn install
- name: Check lock file integrity
run: |
["$(diff yarn.lock.initial yarn.lock)" -eq ""]
job_build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
- uses: actions/cache@v3
id: cache
with:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/codegen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Codegen

on:
push:
branches:
- main
- release/**
pull_request:

jobs:
codegen:
runs-on: ubuntu-latest
strategy:
matrix:
platform: ["android"] # "ios" will be added after codegen is fixed
include:
- platform: android
command: |
cd sample-new-architecture/android
./gradlew generateCodegenArtifactsFromSchema
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/cache@v3
id: cache
with:
path: sample-new-architecture/node_modules
key: ${{ runner.os }}-${{ github.sha }}
- name: Install Dependencies
if: steps.cache.outputs['cache-hit'] != 'true'
run: |
cd sample-new-architecture
yarn install
- name: Codegen
run: ${{ matrix.command }}
Loading

0 comments on commit d197b5c

Please sign in to comment.