Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
8f900e61
Unverified
Commit
8f900e61
authored
1 year ago
by
Uladzimir Havenchyk
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Do not run frontend workflolw when label is added or removed (#34307)
parent
80ee48bf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/chromatic.yml
+54
-0
54 additions, 0 deletions
.github/workflows/chromatic.yml
.github/workflows/frontend.yml
+1
-26
1 addition, 26 deletions
.github/workflows/frontend.yml
with
55 additions
and
26 deletions
.github/workflows/chromatic.yml
0 → 100644
+
54
−
0
View file @
8f900e61
name
:
Chromatic Storybook deployment
on
:
push
:
branches
:
-
"
master"
pull_request
:
types
:
[
synchronize
,
labeled
,
unlabeled
]
concurrency
:
group
:
${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
cancel-in-progress
:
true
jobs
:
files-changed
:
name
:
Check which files changed
runs-on
:
ubuntu-22.04
timeout-minutes
:
3
outputs
:
frontend_all
:
${{ steps.changes.outputs.frontend_all }}
e2e_specs
:
${{ steps.changes.outputs.e2e_specs }}
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Test which files changed
uses
:
dorny/paths-filter@v2.11.1
id
:
changes
with
:
token
:
${{ github.token }}
filters
:
.github/file-paths.yaml
fe-chromatic
:
needs
:
files-changed
if
:
contains(github.event.pull_request.labels.*.name, 'chromatic') || (github.ref_name == 'master' && needs.files-changed.outputs.frontend_all == 'true')
runs-on
:
ubuntu-22.04
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v3
with
:
fetch-depth
:
0
-
name
:
Prepare front-end environment
uses
:
./.github/actions/prepare-frontend
-
name
:
Prepare back-end environment
uses
:
./.github/actions/prepare-backend
with
:
m2-cache-key
:
"
cljs"
-
name
:
Publish to Chromatic
uses
:
chromaui/action@v1
env
:
PUBLISH_CHROMATIC
:
${{ secrets.CHROMATIC_PROJECT_TOKEN }}
STORYBOOK_BUILD_TIMEOUT
:
900000
if
:
env.PUBLISH_CHROMATIC !=
null
with
:
token
:
${{ secrets.GITHUB_TOKEN }}
projectToken
:
${{ secrets.CHROMATIC_PROJECT_TOKEN }}
This diff is collapsed.
Click to expand it.
.github/workflows/frontend.yml
+
1
−
26
View file @
8f900e61
...
...
@@ -6,7 +6,7 @@ on:
-
"
master"
-
"
release-**"
pull_request
:
types
:
[
opened
,
synchronize
,
reopened
,
ready_for_review
,
labeled
,
unlabeled
]
types
:
[
opened
,
synchronize
,
reopened
,
ready_for_review
]
concurrency
:
group
:
${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
...
...
@@ -116,28 +116,3 @@ jobs:
m2-cache-key
:
"
cljs"
-
name
:
Run frontend timezones tests
run
:
yarn run test-timezones
fe-chromatic
:
needs
:
files-changed
if
:
contains(github.event.pull_request.labels.*.name, 'chromatic') || (github.ref_name == 'master' && needs.files-changed.outputs.frontend_all == 'true')
runs-on
:
ubuntu-22.04
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v3
with
:
fetch-depth
:
0
-
name
:
Prepare front-end environment
uses
:
./.github/actions/prepare-frontend
-
name
:
Prepare back-end environment
uses
:
./.github/actions/prepare-backend
with
:
m2-cache-key
:
"
cljs"
-
name
:
Publish to Chromatic
uses
:
chromaui/action@v1
env
:
PUBLISH_CHROMATIC
:
${{ secrets.CHROMATIC_PROJECT_TOKEN }}
STORYBOOK_BUILD_TIMEOUT
:
900000
if
:
env.PUBLISH_CHROMATIC !=
null
with
:
token
:
${{ secrets.GITHUB_TOKEN }}
projectToken
:
${{ secrets.CHROMATIC_PROJECT_TOKEN }}
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