Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit6502a3a

Browse files
DEV: Update CI workflows (#61)
Co-authored-by: discoursebuild <build@discourse.org>
1 parent2e1e620 commit6502a3a

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

‎.github/workflows/plugin-linting.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
-main
77
pull_request:
88

9+
concurrency:
10+
group:plugin-linting-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
11+
cancel-in-progress:true
12+
913
jobs:
1014
build:
1115
runs-on:ubuntu-latest

‎.github/workflows/plugin-tests.yml‎

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@ on:
66
-main
77
pull_request:
88

9+
concurrency:
10+
group:plugin-tests-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
11+
cancel-in-progress:true
12+
913
jobs:
1014
build:
1115
name:${{ matrix.build_type }}
1216
runs-on:ubuntu-latest
13-
container:discourse/discourse_test:slim${{ matrix.build_type =='frontend' && '-browsers' || '' }}
14-
timeout-minutes:60
17+
container:discourse/discourse_test:slim${{startsWith(matrix.build_type,'frontend') && '-browsers' || '' }}
18+
timeout-minutes:30
1519

1620
env:
1721
DISCOURSE_HOSTNAME:www.example.com
@@ -24,7 +28,7 @@ jobs:
2428
fail-fast:false
2529

2630
matrix:
27-
build_type:["backend", "frontend"]
31+
build_type:["backend", "frontend-legacy", "frontend"]
2832

2933
steps:
3034
-uses:actions/checkout@v2
@@ -46,7 +50,7 @@ jobs:
4650
-name:Start redis
4751
run:|
4852
redis-server /etc/redis/redis.conf &
49-
53+
5054
-name:Start Postgres
5155
run:|
5256
chown -R postgres /var/run/postgresql
@@ -63,6 +67,7 @@ jobs:
6367
6468
-name:Setup gems
6569
run:|
70+
gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
6671
bundle config --local path vendor/bundle
6772
bundle config --local deploymenttrue
6873
bundle config --local without development
@@ -94,12 +99,9 @@ jobs:
9499
id:app-cache
95100
with:
96101
path:tmp/app-cache
97-
key:>-# postgres version, hash of migrations, "parallel?"
98-
${{ runner.os }}-
102+
key:>-
99103
${{ hashFiles('.github/workflows/tests.yml') }}-
100-
${{ matrix.postgres }}-
101104
${{ hashFiles('db/**/*', 'plugins/**/db/**/*') }}-
102-
${{ env.USES_PARALLEL_DATABASES }}
103105
104106
-name:Restore database from cache
105107
if:steps.app-cache.outputs.cache-hit == 'true'
@@ -144,6 +146,11 @@ jobs:
144146
fi
145147
146148
-name:Plugin QUnit
149+
if:matrix.build_type == 'frontend-legacy' && steps.check_qunit.outputs.files_exist == 'true'
150+
run:QUNIT_EMBER_CLI=0 bundle exec rake plugin:qunit['${{ github.event.repository.name }}','1200000']
151+
timeout-minutes:10
152+
153+
-name:Plugin QUnit (Ember CLI)
147154
if:matrix.build_type == 'frontend' && steps.check_qunit.outputs.files_exist == 'true'
148-
run:bundle exec rake plugin:qunit['${{ github.event.repository.name }}','1200000']
149-
timeout-minutes:30
155+
run:QUNIT_EMBER_CLI=1bundle exec rake plugin:qunit['${{ github.event.repository.name }}','1200000']
156+
timeout-minutes:10

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp