Skip to content

Commit 195acff

Browse files
authored
ci: fix Running of webiny verify-dependencies command (#4484)
1 parent 86eb11c commit 195acff

17 files changed

+287
-159
lines changed

.github/labeler-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
new-admin-ui:
66
- changed-files:
7-
- any-glob-to-any-file: 'packages/admin-ui/**'
7+
- any-glob-to-any-file: "packages/admin-ui/**"

.github/workflows/chromaticStorybook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Chromatic - Storybook Preview'
1+
name: "Chromatic - Storybook Preview"
22

33
# The events that will trigger the action
44
on:

.github/workflows/cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Cloud infrastructure Cleanup
44
on:
55
workflow_dispatch:
66
repository_dispatch:
7-
types: [ cleanup-infrastructure ]
7+
types: [cleanup-infrastructure]
88
schedule:
99
- cron: "0 2 * * *" # Every day at 2AM.
1010

.github/workflows/codeql-analysis.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
# The branches below must be a subset of the branches above
1313
branches: [next]
1414
schedule:
15-
- cron: '0 15 * * 2'
15+
- cron: "0 15 * * 2"
1616

1717
jobs:
1818
analyze:
@@ -24,48 +24,48 @@ jobs:
2424
matrix:
2525
# Override automatic language detection by changing the below list
2626
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
27-
language: ['javascript']
27+
language: ["javascript"]
2828
# Learn more...
2929
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
3030

3131
steps:
32-
- name: Checkout repository
33-
uses: actions/checkout@v4
34-
with:
35-
# We must fetch at least the immediate parents so that if this is
36-
# a pull request then we can checkout the head.
37-
fetch-depth: 2
32+
- name: Checkout repository
33+
uses: actions/checkout@v4
34+
with:
35+
# We must fetch at least the immediate parents so that if this is
36+
# a pull request then we can checkout the head.
37+
fetch-depth: 2
3838

39-
# If this run was triggered by a pull request event, then checkout
40-
# the head of the pull request instead of the merge commit.
41-
- run: git checkout HEAD^2
42-
if: ${{ github.event_name == 'pull_request' }}
39+
# If this run was triggered by a pull request event, then checkout
40+
# the head of the pull request instead of the merge commit.
41+
- run: git checkout HEAD^2
42+
if: ${{ github.event_name == 'pull_request' }}
4343

44-
# Initializes the CodeQL tools for scanning.
45-
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v1
47-
with:
48-
languages: ${{ matrix.language }}
49-
# If you wish to specify custom queries, you can do so here or in a config file.
50-
# By default, queries listed here will override any specified in a config file.
51-
# Prefix the list here with "+" to use these queries and those in the config file.
52-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v1
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5353

54-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55-
# If this step fails, then you should remove it and run the build manually (see below)
56-
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v1
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v1
5858

59-
# ℹ️ Command-line programs to run using the OS shell.
60-
# 📚 https://git.io/JvXDl
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 https://git.io/JvXDl
6161

62-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63-
# and modify them (or add more) to build your code if your project
64-
# uses a compiled language
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63+
# and modify them (or add more) to build your code if your project
64+
# uses a compiled language
6565

66-
#- run: |
67-
# make bootstrap
68-
# make release
66+
#- run: |
67+
# make bootstrap
68+
# make release
6969

70-
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v1
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v1

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
- uses: actions/labeler@v5
1616
with:
1717
repo-token: ${{ secrets.GH_TOKEN }}
18-
configuration-path: .github/labeler-config.yml
18+
configuration-path: .github/labeler-config.yml

.github/workflows/pullRequests.yml

Lines changed: 49 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# and run "github-actions-wac build" (or "ghawac build") to regenerate this file.
44
# For more information, run "github-actions-wac --help".
55
name: Pull Requests
6-
'on': pull_request
6+
"on": pull_request
77
concurrency:
88
group: pr-${{ github.event.pull_request.number }}
99
cancel-in-progress: true
@@ -19,7 +19,7 @@ jobs:
1919
- uses: webiny/action-conventional-commits@v1.3.0
2020
runs-on: ubuntu-latest
2121
env:
22-
NODE_OPTIONS: '--max_old_space_size=4096'
22+
NODE_OPTIONS: "--max_old_space_size=4096"
2323
YARN_ENABLE_IMMUTABLE_INSTALLS: false
2424
validateCommitsDev:
2525
name: Validate commit messages (dev branch, 'feat' commits not allowed)
@@ -34,7 +34,7 @@ jobs:
3434
allowed-commit-types: fix,docs,style,refactor,test,build,perf,ci,chore,revert,merge,wip
3535
runs-on: ubuntu-latest
3636
env:
37-
NODE_OPTIONS: '--max_old_space_size=4096'
37+
NODE_OPTIONS: "--max_old_space_size=4096"
3838
YARN_ENABLE_IMMUTABLE_INSTALLS: false
3939
constants:
4040
name: Create constants
@@ -87,7 +87,7 @@ jobs:
8787
$GITHUB_OUTPUT
8888
runs-on: ubuntu-latest
8989
env:
90-
NODE_OPTIONS: '--max_old_space_size=4096'
90+
NODE_OPTIONS: "--max_old_space_size=4096"
9191
YARN_ENABLE_IMMUTABLE_INSTALLS: false
9292
assignMilestone:
9393
name: Assign milestone
@@ -117,7 +117,7 @@ jobs:
117117
milestone: ${{ steps.get-milestone-to-assign.outputs.milestone }}
118118
runs-on: ubuntu-latest
119119
env:
120-
NODE_OPTIONS: '--max_old_space_size=4096'
120+
NODE_OPTIONS: "--max_old_space_size=4096"
121121
YARN_ENABLE_IMMUTABLE_INSTALLS: false
122122
build:
123123
name: Build
@@ -149,7 +149,7 @@ jobs:
149149
path: ${{ github.base_ref }}/.webiny/cached-packages
150150
key: ${{ needs.constants.outputs.run-cache-key }}
151151
env:
152-
NODE_OPTIONS: '--max_old_space_size=4096'
152+
NODE_OPTIONS: "--max_old_space_size=4096"
153153
YARN_ENABLE_IMMUTABLE_INSTALLS: false
154154
staticCodeAnalysis:
155155
needs:
@@ -190,7 +190,40 @@ jobs:
190190
working-directory: ${{ github.base_ref }}
191191
runs-on: ubuntu-latest
192192
env:
193-
NODE_OPTIONS: '--max_old_space_size=4096'
193+
NODE_OPTIONS: "--max_old_space_size=4096"
194+
YARN_ENABLE_IMMUTABLE_INSTALLS: false
195+
staticCodeAnalysisVerifyDependencies:
196+
needs:
197+
- constants
198+
- build
199+
name: Static code analysis (verify dependencies)
200+
steps:
201+
- uses: actions/setup-node@v4
202+
with:
203+
node-version: 20
204+
- uses: actions/checkout@v4
205+
with:
206+
path: ${{ github.base_ref }}
207+
- uses: actions/cache@v4
208+
with:
209+
path: ${{ github.base_ref }}/.yarn/cache
210+
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
211+
- uses: actions/cache@v4
212+
with:
213+
path: ${{ github.base_ref }}/.webiny/cached-packages
214+
key: ${{ needs.constants.outputs.run-cache-key }}
215+
- name: Install dependencies
216+
run: yarn --immutable
217+
working-directory: ${{ github.base_ref }}
218+
- name: Build packages
219+
run: yarn build:quick
220+
working-directory: ${{ github.base_ref }}
221+
- name: Sync Dependencies Verification
222+
run: yarn webiny verify-dependencies
223+
working-directory: ${{ github.base_ref }}
224+
runs-on: ubuntu-latest
225+
env:
226+
NODE_OPTIONS: "--max_old_space_size=4096"
194227
YARN_ENABLE_IMMUTABLE_INSTALLS: false
195228
staticCodeAnalysisTs:
196229
name: Static code analysis (TypeScript)
@@ -216,7 +249,7 @@ jobs:
216249
run: yarn cy:ts
217250
working-directory: ${{ github.base_ref }}
218251
env:
219-
NODE_OPTIONS: '--max_old_space_size=4096'
252+
NODE_OPTIONS: "--max_old_space_size=4096"
220253
YARN_ENABLE_IMMUTABLE_INSTALLS: false
221254
jestTestsNoStorageConstants:
222255
needs:
@@ -244,7 +277,7 @@ jobs:
244277
echo '${{
245278
steps.list-packages-to-jest-test.outputs.packages-to-jest-test }}'
246279
env:
247-
NODE_OPTIONS: '--max_old_space_size=4096'
280+
NODE_OPTIONS: "--max_old_space_size=4096"
248281
YARN_ENABLE_IMMUTABLE_INSTALLS: false
249282
jestTestsNoStorageRun:
250283
needs:
@@ -265,7 +298,7 @@ jobs:
265298
}}
266299
runs-on: ${{ matrix.os }}
267300
env:
268-
NODE_OPTIONS: '--max_old_space_size=4096'
301+
NODE_OPTIONS: "--max_old_space_size=4096"
269302
YARN_ENABLE_IMMUTABLE_INSTALLS: false
270303
AWS_REGION: eu-central-1
271304
if: needs.jestTestsNoStorageConstants.outputs.packages-to-jest-test != '[]'
@@ -363,7 +396,7 @@ jobs:
363396
echo '${{
364397
steps.list-packages-to-jest-test.outputs.packages-to-jest-test }}'
365398
env:
366-
NODE_OPTIONS: '--max_old_space_size=4096'
399+
NODE_OPTIONS: "--max_old_space_size=4096"
367400
YARN_ENABLE_IMMUTABLE_INSTALLS: false
368401
jestTestsddbRun:
369402
needs:
@@ -383,7 +416,7 @@ jobs:
383416
fromJson(needs.jestTestsddbConstants.outputs.packages-to-jest-test) }}
384417
runs-on: ${{ matrix.os }}
385418
env:
386-
NODE_OPTIONS: '--max_old_space_size=4096'
419+
NODE_OPTIONS: "--max_old_space_size=4096"
387420
YARN_ENABLE_IMMUTABLE_INSTALLS: false
388421
AWS_REGION: eu-central-1
389422
if: needs.jestTestsddbConstants.outputs.packages-to-jest-test != '[]'
@@ -480,7 +513,7 @@ jobs:
480513
echo '${{
481514
steps.list-packages-to-jest-test.outputs.packages-to-jest-test }}'
482515
env:
483-
NODE_OPTIONS: '--max_old_space_size=4096'
516+
NODE_OPTIONS: "--max_old_space_size=4096"
484517
YARN_ENABLE_IMMUTABLE_INSTALLS: false
485518
jestTestsddb-esRun:
486519
needs:
@@ -501,7 +534,7 @@ jobs:
501534
}}
502535
runs-on: ${{ matrix.os }}
503536
env:
504-
NODE_OPTIONS: '--max_old_space_size=4096'
537+
NODE_OPTIONS: "--max_old_space_size=4096"
505538
YARN_ENABLE_IMMUTABLE_INSTALLS: false
506539
AWS_REGION: eu-central-1
507540
AWS_ELASTIC_SEARCH_DOMAIN_NAME: ${{ secrets.AWS_ELASTIC_SEARCH_DOMAIN_NAME }}
@@ -610,7 +643,7 @@ jobs:
610643
echo '${{
611644
steps.list-packages-to-jest-test.outputs.packages-to-jest-test }}'
612645
env:
613-
NODE_OPTIONS: '--max_old_space_size=4096'
646+
NODE_OPTIONS: "--max_old_space_size=4096"
614647
YARN_ENABLE_IMMUTABLE_INSTALLS: false
615648
jestTestsddb-osRun:
616649
needs:
@@ -631,7 +664,7 @@ jobs:
631664
}}
632665
runs-on: ${{ matrix.os }}
633666
env:
634-
NODE_OPTIONS: '--max_old_space_size=4096'
667+
NODE_OPTIONS: "--max_old_space_size=4096"
635668
YARN_ENABLE_IMMUTABLE_INSTALLS: false
636669
AWS_REGION: eu-central-1
637670
AWS_ELASTIC_SEARCH_DOMAIN_NAME: ${{ secrets.AWS_OPEN_SEARCH_DOMAIN_NAME }}

0 commit comments

Comments
 (0)