mirror of
https://github.com/discourse/discourse.git
synced 2025-04-26 12:44:28 +08:00
DEV: Add ember-5 to test matrix for core/chat system specs (#24721)
This commit is contained in:
parent
b3d1707b65
commit
f7c514dc99
14
.github/workflows/tests.yml
vendored
14
.github/workflows/tests.yml
vendored
@ -22,7 +22,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror'
|
if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror'
|
||||||
name: ${{ matrix.target }} ${{ matrix.build_type }}
|
name: ${{ matrix.target }} ${{ matrix.build_type }}${{ matrix.updated_ember && ' (Ember 5)' || '' }}
|
||||||
runs-on: ${{ (matrix.build_type == 'annotations') && 'ubuntu-latest' || 'ubuntu-20.04-8core' }}
|
runs-on: ${{ (matrix.build_type == 'annotations') && 'ubuntu-latest' || 'ubuntu-20.04-8core' }}
|
||||||
container: discourse/discourse_test:slim${{ (matrix.build_type == 'frontend' || matrix.build_type == 'system') && '-browsers' || '' }}${{ (matrix.ruby == '3.1') && '-ruby-3.1.0' || '' }}
|
container: discourse/discourse_test:slim${{ (matrix.build_type == 'frontend' || matrix.build_type == 'system') && '-browsers' || '' }}${{ (matrix.ruby == '3.1') && '-ruby-3.1.0' || '' }}
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
@ -35,6 +35,7 @@ jobs:
|
|||||||
USES_PARALLEL_DATABASES: ${{ matrix.build_type == 'backend' || matrix.build_type == 'system' }}
|
USES_PARALLEL_DATABASES: ${{ matrix.build_type == 'backend' || matrix.build_type == 'system' }}
|
||||||
CAPYBARA_DEFAULT_MAX_WAIT_TIME: 10
|
CAPYBARA_DEFAULT_MAX_WAIT_TIME: 10
|
||||||
MINIO_RUNNER_LOG_LEVEL: DEBUG
|
MINIO_RUNNER_LOG_LEVEL: DEBUG
|
||||||
|
EMBER_VERSION: ${{ (matrix.updated_ember && '5') || '3' }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@ -43,6 +44,7 @@ jobs:
|
|||||||
build_type: [backend, frontend, system, annotations]
|
build_type: [backend, frontend, system, annotations]
|
||||||
target: [core, plugins, themes]
|
target: [core, plugins, themes]
|
||||||
ruby: ["3.2"]
|
ruby: ["3.2"]
|
||||||
|
updated_ember: [false]
|
||||||
exclude:
|
exclude:
|
||||||
- build_type: annotations
|
- build_type: annotations
|
||||||
target: plugins
|
target: plugins
|
||||||
@ -56,6 +58,12 @@ jobs:
|
|||||||
- build_type: system
|
- build_type: system
|
||||||
target: chat
|
target: chat
|
||||||
ruby: "3.2"
|
ruby: "3.2"
|
||||||
|
- build_type: system
|
||||||
|
target: chat
|
||||||
|
updated_ember: true
|
||||||
|
- build_type: system
|
||||||
|
target: core
|
||||||
|
updated_ember: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set working directory owner
|
- name: Set working directory owner
|
||||||
@ -106,6 +114,10 @@ jobs:
|
|||||||
path: ${{ steps.yarn-cache-dir.outputs.dir }}
|
path: ${{ steps.yarn-cache-dir.outputs.dir }}
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-cachev2
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-cachev2
|
||||||
|
|
||||||
|
- name: Upgrade Ember
|
||||||
|
if: matrix.updated_ember == true
|
||||||
|
run: script/switch_ember_version 5
|
||||||
|
|
||||||
- name: Yarn install
|
- name: Yarn install
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --frozen-lockfile
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user