Skip to content

Commit 483f4a2

Browse files
committed
Fix web CI/CD
1 parent 7624e8a commit 483f4a2

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/engagement-web-cd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545

4646
steps:
4747
- uses: actions/checkout@v7
48+
with:
49+
submodules: recursive
4850

4951
- name: Install Openshift Tooling
5052
uses: redhat-actions/openshift-tools-installer@v1.13.1

.github/workflows/engagement-web-ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
if: github.repository == 'bcgov/dep-public'
2525
steps:
2626
- uses: actions/checkout@v7
27+
with:
28+
submodules: recursive
2729

2830
linting:
2931
needs: setup-job
@@ -35,6 +37,8 @@ jobs:
3537

3638
steps:
3739
- uses: actions/checkout@v7
40+
with:
41+
submodules: recursive
3842
- name: Use Node.js ${{ matrix.node-version }}
3943
uses: actions/setup-node@v6
4044
with:
@@ -53,6 +57,8 @@ jobs:
5357

5458
steps:
5559
- uses: actions/checkout@v7
60+
with:
61+
submodules: recursive
5662

5763
- name: Use Node.js ${{ matrix.node-version }}
5864
uses: actions/setup-node@v6
@@ -81,6 +87,8 @@ jobs:
8187

8288
steps:
8389
- uses: actions/checkout@v7
90+
with:
91+
submodules: recursive
8492
- name: Use Node.js ${{ matrix.node-version }}
8593
uses: actions/setup-node@v6
8694
with:

web/src/components/Form/formio/setup.test.ts renamed to web/tests/unit/components/survey/formioSetup.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('setupFormio', () => {
3030
});
3131

3232
it('registers met-formio and common-hosted-form-service components once', async () => {
33-
const setupFormio = (await import('./setup')).default;
33+
const setupFormio = (await import('components/Form/formio/setup')).default;
3434
const metFormio = (await import('met-formio')).default;
3535
const bcgovFormio = (await import('@bcgov/formio')).default;
3636
const { Formio } = await import('@formio/react');
@@ -44,7 +44,7 @@ describe('setupFormio', () => {
4444
});
4545

4646
it('does not re-register components after initialization', async () => {
47-
const setupFormio = (await import('./setup')).default;
47+
const setupFormio = (await import('components/Form/formio/setup')).default;
4848

4949
setupFormio();
5050
setupFormio();

0 commit comments

Comments
 (0)