mirror of
https://github.com/discourse/discourse.git
synced 2024-11-21 16:38:15 -06:00
DEV: Fix incorrect github.ref
value in tests workflow (#28902)
This commit is contained in:
parent
e9b7663798
commit
9a4f71353d
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
||||
build:
|
||||
if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror'
|
||||
name: ${{ matrix.target }} ${{ matrix.build_type }} # Update fetch-job-id step if changing this
|
||||
runs-on: ${{ (github.ref == 'refs/main/head') && 'debian-12' || 'ubuntu-22.04-8core' }}
|
||||
runs-on: ${{ ((github.ref == 'refs/heads/main') && 'debian-12') || 'ubuntu-22.04-8core' }}
|
||||
container: discourse/discourse_test:slim${{ (matrix.build_type == 'frontend' || matrix.build_type == 'system') && '-browsers' || '' }}
|
||||
timeout-minutes: 20
|
||||
|
||||
@ -41,7 +41,7 @@ jobs:
|
||||
USES_PARALLEL_DATABASES: ${{ matrix.build_type == 'backend' || matrix.build_type == 'system' }}
|
||||
CAPYBARA_DEFAULT_MAX_WAIT_TIME: 10
|
||||
MINIO_RUNNER_LOG_LEVEL: DEBUG
|
||||
DISCOURSE_TURBO_RSPEC_RETRY_AND_LOG_FLAKY_TESTS: ${{ (matrix.build_type == 'system' || matrix.build_type == 'backend') && github.ref == 'refs/main/head' }}
|
||||
DISCOURSE_TURBO_RSPEC_RETRY_AND_LOG_FLAKY_TESTS: ${{ (matrix.build_type == 'system' || matrix.build_type == 'backend') && github.ref == 'refs/heads/main' && '1' }}
|
||||
CHEAP_SOURCE_MAPS: "1"
|
||||
TESTEM_DEFAULT_BROWSER: Chrome
|
||||
|
||||
@ -358,7 +358,7 @@ jobs:
|
||||
core_frontend_tests:
|
||||
if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror'
|
||||
name: core frontend (${{ matrix.browser }})
|
||||
runs-on: ${{ (github.ref == 'refs/main/head' ) && 'debian-12' || 'ubuntu-22.04-8core' }}
|
||||
runs-on: ${{ ((github.ref == 'refs/heads/main') && 'debian-12') || 'ubuntu-22.04-8core' }}
|
||||
container:
|
||||
image: discourse/discourse_test:slim-browsers
|
||||
options: --user discourse
|
||||
|
@ -16,7 +16,7 @@ profile_print_slowest_examples_count = 10
|
||||
use_runtime_info = nil
|
||||
enable_system_tests = nil
|
||||
disable_system_tests = nil
|
||||
retry_and_log_flaky_tests = !!ENV["DISCOURSE_TURBO_RSPEC_RETRY_AND_LOG_FLAKY_TESTS"]
|
||||
retry_and_log_flaky_tests = ENV["DISCOURSE_TURBO_RSPEC_RETRY_AND_LOG_FLAKY_TESTS"].to_s == "1"
|
||||
|
||||
OptionParser
|
||||
.new do |opts|
|
||||
|
Loading…
Reference in New Issue
Block a user