Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Discourse SAML
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giacomo Vercesi
Discourse SAML
Commits
a17d51e2
Unverified
Commit
a17d51e2
authored
3 years ago
by
discoursebot
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
DEV: Update CI workflows (#66)
Co-authored-by:
discoursebuild
<
build@discourse.org
>
parent
3d1f5fa3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/plugin-linting.yml
+4
-0
4 additions, 0 deletions
.github/workflows/plugin-linting.yml
.github/workflows/plugin-tests.yml
+17
-10
17 additions, 10 deletions
.github/workflows/plugin-tests.yml
with
21 additions
and
10 deletions
.github/workflows/plugin-linting.yml
+
4
−
0
View file @
a17d51e2
...
...
@@ -6,6 +6,10 @@ on:
-
main
pull_request
:
concurrency
:
group
:
plugin-linting-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
cancel-in-progress
:
true
jobs
:
build
:
runs-on
:
ubuntu-latest
...
...
This diff is collapsed.
Click to expand it.
.github/workflows/plugin-tests.yml
+
17
−
10
View file @
a17d51e2
...
...
@@ -6,12 +6,16 @@ on:
-
main
pull_request
:
concurrency
:
group
:
plugin-tests-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
cancel-in-progress
:
true
jobs
:
build
:
name
:
${{ matrix.build_type }}
runs-on
:
ubuntu-latest
container
:
discourse/discourse_test:slim${{ matrix.build_type
==
'frontend' && '-browsers' || '' }}
timeout-minutes
:
6
0
container
:
discourse/discourse_test:slim${{
startsWith(
matrix.build_type
,
'frontend'
)
&& '-browsers' || '' }}
timeout-minutes
:
3
0
env
:
DISCOURSE_HOSTNAME
:
www.example.com
...
...
@@ -24,7 +28,7 @@ jobs:
fail-fast
:
false
matrix
:
build_type
:
[
"
backend"
,
"
frontend"
]
build_type
:
[
"
backend"
,
"
frontend-legacy"
,
"
frontend"
]
steps
:
-
uses
:
actions/checkout@v2
...
...
@@ -46,7 +50,7 @@ jobs:
-
name
:
Start redis
run
:
|
redis-server /etc/redis/redis.conf &
-
name
:
Start Postgres
run
:
|
chown -R postgres /var/run/postgresql
...
...
@@ -63,6 +67,7 @@ jobs:
-
name
:
Setup gems
run
:
|
gem install bundler --conservative -v $(awk '/BUNDLED WITH/ { getline; gsub(/ /,""); print $0 }' Gemfile.lock)
bundle config --local path vendor/bundle
bundle config --local deployment true
bundle config --local without development
...
...
@@ -94,12 +99,9 @@ jobs:
id
:
app-cache
with
:
path
:
tmp/app-cache
key
:
>-
# postgres version, hash of migrations, "parallel?"
${{ runner.os }}-
key
:
>-
${{ hashFiles('.github/workflows/tests.yml') }}-
${{ matrix.postgres }}-
${{ hashFiles('db/**/*', 'plugins/**/db/**/*') }}-
${{ env.USES_PARALLEL_DATABASES }}
-
name
:
Restore database from cache
if
:
steps.app-cache.outputs.cache-hit == 'true'
...
...
@@ -144,6 +146,11 @@ jobs:
fi
-
name
:
Plugin QUnit
if
:
matrix.build_type == 'frontend-legacy' && steps.check_qunit.outputs.files_exist == 'true'
run
:
QUNIT_EMBER_CLI=0 bundle exec rake plugin:qunit['${{ github.event.repository.name }}','1200000']
timeout-minutes
:
10
-
name
:
Plugin QUnit (Ember CLI)
if
:
matrix.build_type == 'frontend' && steps.check_qunit.outputs.files_exist == 'true'
run
:
bundle exec rake plugin:qunit['${{ github.event.repository.name }}','1200000']
timeout-minutes
:
3
0
run
:
QUNIT_EMBER_CLI=1
bundle exec rake plugin:qunit['${{ github.event.repository.name }}','1200000']
timeout-minutes
:
1
0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment