Use fetchdep everywhere

This commit is contained in:
Michael Telatynski 2022-04-27 17:12:34 +01:00
parent 418de7998a
commit 8bdd965122
7 changed files with 135 additions and 117 deletions

View file

@ -19,11 +19,8 @@ jobs:
with:
cache: 'yarn'
- name: Install SDKs
run: "./scripts/fetch-develop.deps.sh --depth 1"
- name: Install Dependencies
run: "yarn install"
run: "./scripts/layered.sh"
- name: Build & Package
run: "./scripts/ci_package.sh"

View file

@ -1,4 +1,7 @@
name: Upload Sentry Sourcemaps
# We cannot reuse the build from the main Builder workflow
# due to needing to inject SENTRY_ env vars into ci_package.sh
# For security we harbor the secrets in a develop-only environment.
name: Sentry Sourcemaps
on:
push:
branches:
@ -6,18 +9,23 @@ on:
repository_dispatch:
types: [ element-web-notify ]
jobs:
upload-sentry-sourcemaps:
upload:
name: Upload
runs-on: ubuntu-latest
environment: develop
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
- run: ./scripts/fetch-develop.deps.sh --depth 1
- run: yarn install
- run: ./scripts/ci_package.sh
- name: Install Dependencies
run: "./scripts/layered.sh"
- name: Build & Package
run: "./scripts/ci_package.sh"
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}

View file

@ -19,11 +19,8 @@ jobs:
with:
cache: 'yarn'
- name: Install SDKs
run: "./scripts/fetch-develop.deps.sh --depth 1"
- name: Install Dependencies
run: "yarn install"
run: "./scripts/layered.sh"
- name: Typecheck
run: "yarn run lint:types"

View file

@ -19,11 +19,8 @@ jobs:
with:
cache: 'yarn'
- name: Install SDKs
run: "./scripts/fetch-develop.deps.sh --depth 1"
- name: Install Dependencies
run: "yarn install"
run: "./scripts/layered.sh"
- name: Run Tests
run: "yarn test"