mirror of
https://github.com/vector-im/element-call.git
synced 2026-10-10 23:25:52 +00:00
Remove layered boolean
This commit is contained in:
@@ -14,11 +14,6 @@ on:
|
|||||||
description: The build mode for vite. Must be either 'development' or 'production'
|
description: The build mode for vite. Must be either 'development' or 'production'
|
||||||
required: false
|
required: false
|
||||||
default: production
|
default: production
|
||||||
layered:
|
|
||||||
type: boolean
|
|
||||||
description: Build against the matching branch of matrix-js-sdk (if any) instead of the locked commit.
|
|
||||||
required: false
|
|
||||||
default: false
|
|
||||||
secrets:
|
secrets:
|
||||||
SENTRY_ORG:
|
SENTRY_ORG:
|
||||||
required: true
|
required: true
|
||||||
@@ -48,11 +43,6 @@ jobs:
|
|||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
node-version-file: ".node-version"
|
node-version-file: ".node-version"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: ${{ !inputs.layered }}
|
|
||||||
# ignore-pnpmfile should never be commited. Make CI crash if it happened (`pnpmfileChecksum` is present)
|
|
||||||
run: "pnpm install --frozen-lockfile --ignore-pnpmfile"
|
|
||||||
- name: Install dependencies (layered)
|
|
||||||
if: ${{ inputs.layered }}
|
|
||||||
# ignore-pnpmfile should never be commited. Make CI crash if it happened (`pnpmfileChecksum` is present)
|
# ignore-pnpmfile should never be commited. Make CI crash if it happened (`pnpmfileChecksum` is present)
|
||||||
run: "scripts/layered.sh --ignore-pnpmfile"
|
run: "scripts/layered.sh --ignore-pnpmfile"
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ jobs:
|
|||||||
package: full
|
package: full
|
||||||
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
|
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
|
||||||
build_mode: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'development build') && 'development' || 'production' }}
|
build_mode: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'development build') && 'development' || 'production' }}
|
||||||
layered: ${{ github.event_name == 'pull_request' }}
|
|
||||||
secrets:
|
secrets:
|
||||||
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
||||||
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
||||||
@@ -66,7 +65,6 @@ jobs:
|
|||||||
package: embedded
|
package: embedded
|
||||||
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
|
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
|
||||||
build_mode: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'development build') && 'development' || 'production' }}
|
build_mode: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'development build') && 'development' || 'production' }}
|
||||||
layered: ${{ github.event_name == 'pull_request' }}
|
|
||||||
secrets:
|
secrets:
|
||||||
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
||||||
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
||||||
@@ -81,7 +79,6 @@ jobs:
|
|||||||
package: sdk
|
package: sdk
|
||||||
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
|
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
|
||||||
build_mode: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'development build') && 'development' || 'production' }}
|
build_mode: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'development build') && 'development' || 'production' }}
|
||||||
layered: ${{ github.event_name == 'pull_request' }}
|
|
||||||
secrets:
|
secrets:
|
||||||
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
|
||||||
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
node-version-file: ".node-version"
|
node-version-file: ".node-version"
|
||||||
- name: Install dependencies (layered)
|
- name: Install dependencies
|
||||||
# ignore-pnpmfile should never be commited. Make CI crash if it happened (`pnpmfileChecksum` is present)
|
# ignore-pnpmfile should never be commited. Make CI crash if it happened (`pnpmfileChecksum` is present)
|
||||||
run: "scripts/layered.sh --ignore-pnpmfile"
|
run: "scripts/layered.sh --ignore-pnpmfile"
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -20,11 +20,6 @@ jobs:
|
|||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
node-version-file: ".node-version"
|
node-version-file: ".node-version"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
# ignore-pnpmfile should never be commited. Make CI crash if it happened (`pnpmfileChecksum` is present)
|
|
||||||
run: "pnpm install --frozen-lockfile --ignore-pnpmfile"
|
|
||||||
- name: Install dependencies (layered)
|
|
||||||
if: github.event_name == 'pull_request'
|
|
||||||
# ignore-pnpmfile should never be commited. Make CI crash if it happened (`pnpmfileChecksum` is present)
|
# ignore-pnpmfile should never be commited. Make CI crash if it happened (`pnpmfileChecksum` is present)
|
||||||
run: "scripts/layered.sh --ignore-pnpmfile"
|
run: "scripts/layered.sh --ignore-pnpmfile"
|
||||||
env:
|
env:
|
||||||
@@ -65,11 +60,7 @@ jobs:
|
|||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
node-version-file: ".node-version"
|
node-version-file: ".node-version"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
# ignore-pnpmfile should never be commited. Make CI crash if it happened (`pnpmfileChecksum` is present)
|
# ignore-pnpmfile should never be commited. Make CI crash if it happened (`pnpmfileChecksum` is present)
|
||||||
run: pnpm install --frozen-lockfile --ignore-pnpmfile
|
|
||||||
- name: Install dependencies (layered)
|
|
||||||
if: github.event_name == 'pull_request'
|
|
||||||
run: scripts/layered.sh --ignore-pnpmfile
|
run: scripts/layered.sh --ignore-pnpmfile
|
||||||
env:
|
env:
|
||||||
PR_HEAD_REPO_OWNER: ${{ github.event.pull_request.head.repo.owner.login }}
|
PR_HEAD_REPO_OWNER: ${{ github.event.pull_request.head.repo.owner.login }}
|
||||||
|
|||||||
+5
-2
@@ -3,11 +3,14 @@
|
|||||||
# Installs dependencies, then swaps matrix-js-sdk for a branch of the same
|
# Installs dependencies, then swaps matrix-js-sdk for a branch of the same
|
||||||
# name as the pull request branch under test if one exists. This is what
|
# name as the pull request branch under test if one exists. This is what
|
||||||
# lets CI test an Element Call branch together with a matrix-js-sdk branch
|
# lets CI test an Element Call branch together with a matrix-js-sdk branch
|
||||||
# before either is merged. Without a matching branch the install is left as
|
# before either is merged. Inspired by scripts/layered.sh in element-web.
|
||||||
# pnpm-lock.yaml pins it. Inspired by scripts/layered.sh in element-web.
|
|
||||||
#
|
#
|
||||||
# Usage: scripts/layered.sh [pnpm install flags]
|
# Usage: scripts/layered.sh [pnpm install flags]
|
||||||
#
|
#
|
||||||
|
# The layering is only performed when package.json uses the develop branch of
|
||||||
|
# matrix-js-sdk and the run is for a pull request whose branch has a matrix-js-sdk
|
||||||
|
# counterpart. Otherwise the dependency is left as pnpm-lock.yaml pins it.
|
||||||
|
#
|
||||||
# The matrix-js-sdk checkout is nested inside this directory because some CI
|
# The matrix-js-sdk checkout is nested inside this directory because some CI
|
||||||
# systems do not allow moving above the primary checkout. It is git-ignored.
|
# systems do not allow moving above the primary checkout. It is git-ignored.
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user