Skip to content

Commit 99f0cc1

Browse files
authored
Merge pull request #1430 from IFRCGo/feature/translation-fixes
Feature/translation fixes
2 parents 8f7a9bb + 18c6930 commit 99f0cc1

File tree

322 files changed

+15618
-13332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

322 files changed

+15618
-13332
lines changed

.github/workflows/chromatic.yml

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,25 @@ jobs:
2222
working-directory: packages/ui
2323
steps:
2424
- uses: actions/checkout@v4
25-
- uses: actions/setup-node@v4
25+
with:
26+
fetch-depth: 0
27+
- name: Install pnpm
28+
uses: pnpm/action-setup@v4
29+
- name: Install Node.js
30+
uses: actions/setup-node@v4
2631
with:
2732
node-version: 20
28-
cache: 'yarn'
29-
- name: Install dependencies on UI library
30-
run: yarn install --frozen-lockfile
33+
cache: 'pnpm'
34+
- name: Install dependencies
35+
run: pnpm install
3136
- name: Typecheck
32-
run: yarn typecheck
37+
run: pnpm typecheck
3338
- name: Lint CSS
34-
run: yarn lint:css
39+
run: pnpm lint:css
3540
- name: Lint JS
36-
run: yarn lint:js
41+
run: pnpm lint:js
3742
- name: build UI library
38-
run: yarn build
43+
run: pnpm build
3944
- uses: actions/upload-artifact@v4
4045
with:
4146
name: ui-build
@@ -48,16 +53,19 @@ jobs:
4853
- uses: actions/checkout@v4
4954
with:
5055
fetch-depth: 0
51-
- uses: actions/setup-node@v4
56+
- name: Install pnpm
57+
uses: pnpm/action-setup@v4
58+
- name: Install Node.js
59+
uses: actions/setup-node@v4
5260
with:
5361
node-version: 20
54-
cache: 'yarn'
62+
cache: 'pnpm'
63+
- name: Install dependencies
64+
run: pnpm install
5565
- uses: actions/download-artifact@v4
5666
with:
5767
name: ui-build
5868
path: packages/ui/dist
59-
- name: Install dependencies
60-
run: yarn install --frozen-lockfile
6169
- name: Run Chromatic
6270
uses: chromaui/action@v1
6371
with:
@@ -76,16 +84,20 @@ jobs:
7684
- uses: actions/checkout@v4
7785
with:
7886
fetch-depth: 0
79-
- uses: actions/setup-node@v4
87+
- name: Install pnpm
88+
uses: pnpm/action-setup@v4
89+
- name: Install Node.js
90+
uses: actions/setup-node@v4
8091
with:
8192
node-version: 20
93+
cache: 'pnpm'
8294
- uses: actions/download-artifact@v4
8395
with:
8496
name: ui-build
8597
path: packages/ui/dist
8698
- uses: bitovi/[email protected]
8799
with:
88-
install_command: yarn install
89-
build_command: yarn build-storybook
100+
install_command: pnpm install
101+
build_command: pnpm build-storybook
90102
path: packages/go-ui-storybook/storybook-static
91103
checkout: false

.github/workflows/ci.yml

Lines changed: 87 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,27 @@ jobs:
3131
working-directory: packages/ui
3232
steps:
3333
- uses: actions/checkout@v4
34-
- uses: actions/setup-node@v4
34+
- name: Install pnpm
35+
uses: pnpm/action-setup@v4
36+
- name: Install Node.js
37+
uses: actions/setup-node@v4
3538
with:
3639
node-version: 20
37-
cache: 'yarn'
38-
39-
- name: Install dependencies on UI library
40-
run: yarn install --frozen-lockfile
40+
cache: 'pnpm'
41+
- name: Install dependencies
42+
run: pnpm install
4143

4244
- name: Typecheck
43-
run: yarn typecheck
45+
run: pnpm typecheck
4446

4547
- name: Lint CSS
46-
run: yarn lint:css
48+
run: pnpm lint:css
4749

4850
- name: Lint JS
49-
run: yarn lint:js
51+
run: pnpm lint:js
5052

51-
- name: build UI library
52-
run: yarn build
53+
- name: Build
54+
run: pnpm build
5355

5456
- uses: actions/upload-artifact@v4
5557
with:
@@ -60,163 +62,180 @@ jobs:
6062
name: Run tests
6163
environment: 'test'
6264
runs-on: ubuntu-latest
65+
defaults:
66+
run:
67+
working-directory: app
6368
needs: [ui]
6469
steps:
6570
- uses: actions/checkout@v4
66-
- uses: actions/setup-node@v4
71+
- name: Install pnpm
72+
uses: pnpm/action-setup@v4
73+
- name: Install Node.js
74+
uses: actions/setup-node@v4
6775
with:
6876
node-version: 20
69-
cache: 'yarn'
77+
cache: 'pnpm'
78+
- name: Install dependencies
79+
run: pnpm install
7080

7181
- uses: actions/download-artifact@v4
7282
with:
7383
name: ui-build
7484
path: packages/ui/dist
7585

76-
- name: Install dependencies
77-
run: yarn install --frozen-lockfile
78-
working-directory: app
79-
8086
- name: Run test
81-
run: yarn test
82-
working-directory: app
87+
run: pnpm test
8388

8489
translation:
90+
continue-on-error: true
8591
name: Identify error with translation files
8692
runs-on: ubuntu-latest
93+
defaults:
94+
run:
95+
working-directory: app
8796
needs: [ui]
8897
steps:
8998
- uses: actions/checkout@v4
90-
- uses: actions/setup-node@v4
99+
- name: Install pnpm
100+
uses: pnpm/action-setup@v4
101+
- name: Install Node.js
102+
uses: actions/setup-node@v4
91103
with:
92104
node-version: 20
93-
cache: 'yarn'
105+
cache: 'pnpm'
106+
- name: Install dependencies
107+
run: pnpm install
94108

95109
- uses: actions/download-artifact@v4
96110
with:
97111
name: ui-build
98112
path: packages/ui/dist
99113

100-
- name: Install dependencies
101-
run: yarn install --frozen-lockfile
102-
working-directory: app
103-
104114
- name: Identify error with translation files
105-
run: yarn lint:translation
106-
working-directory: app
115+
run: pnpm lint:translation
107116

108117
unimported:
109118
name: Identify unused files
110119
runs-on: ubuntu-latest
111120
needs: [ui]
112121
steps:
113122
- uses: actions/checkout@v4
114-
- uses: actions/setup-node@v4
123+
- name: Install pnpm
124+
uses: pnpm/action-setup@v4
125+
- name: Install Node.js
126+
uses: actions/setup-node@v4
115127
with:
116128
node-version: 20
117-
cache: 'yarn'
118-
119-
- uses: actions/download-artifact@v4
120-
with:
121-
name: ui-build
122-
path: packages/ui/dist
123-
129+
cache: 'pnpm'
124130
- name: Install dependencies
125-
run: yarn install --frozen-lockfile
131+
run: pnpm install
132+
133+
- name: Initialize types
134+
run: pnpm initialize:type
126135
working-directory: app
127136

128137
- name: Identify unused files
129-
run: yarn lint:unused
130-
working-directory: app
138+
run: pnpm lint:unused
131139

132140
lint:
133141
name: Lint JS
134142
runs-on: ubuntu-latest
143+
defaults:
144+
run:
145+
working-directory: app
135146
needs: [ui]
136147
steps:
137148
- uses: actions/checkout@v4
138-
- uses: actions/setup-node@v4
149+
- name: Install pnpm
150+
uses: pnpm/action-setup@v4
151+
- name: Install Node.js
152+
uses: actions/setup-node@v4
139153
with:
140154
node-version: 20
141-
cache: 'yarn'
155+
cache: 'pnpm'
156+
- name: Install dependencies
157+
run: pnpm install
142158

143159
- uses: actions/download-artifact@v4
144160
with:
145161
name: ui-build
146162
path: packages/ui/dist
147163

148-
- name: Install dependencies
149-
run: yarn install --frozen-lockfile
150-
working-directory: app
151-
152164
- name: Lint JS
153-
run: yarn lint:js
154-
working-directory: app
165+
run: pnpm lint:js
155166

156167
lint-css:
157168
name: Lint CSS
158169
runs-on: ubuntu-latest
170+
defaults:
171+
run:
172+
working-directory: app
159173
needs: [ui]
160174
steps:
161175
- uses: actions/checkout@v4
162-
- uses: actions/setup-node@v4
176+
- name: Install pnpm
177+
uses: pnpm/action-setup@v4
178+
- name: Install Node.js
179+
uses: actions/setup-node@v4
163180
with:
164181
node-version: 20
165-
cache: 'yarn'
182+
cache: 'pnpm'
183+
- name: Install dependencies
184+
run: pnpm install
166185

167186
- uses: actions/download-artifact@v4
168187
with:
169188
name: ui-build
170189
path: packages/ui/dist
171190

172-
- name: Install dependencies
173-
run: yarn install --frozen-lockfile
174-
working-directory: app
175-
176191
- name: Lint CSS
177-
run: yarn lint:css
178-
working-directory: app
192+
run: pnpm lint:css
179193

180194
# FIXME: Identify a way to generate schema before we run typecheck
181195
# typecheck:
182196
# name: Typecheck
183197
# runs-on: ubuntu-latest
184198
# steps:
185199
# - uses: actions/checkout@v4
186-
# - uses: actions/setup-node@v4
200+
# - name: Install pnpm
201+
# uses: pnpm/action-setup@v4
202+
# - name: Install Node.js
203+
# uses: actions/setup-node@v4
187204
# with:
188205
# node-version: 20
189-
# cache: 'yarn'
190-
206+
# cache: 'pnpm'
191207
# - name: Install dependencies
192-
# run: yarn install --frozen-lockfile
193-
208+
# run: pnpm install
209+
#
194210
# - name: Typecheck
195-
# run: yarn typecheck
211+
# run: pnpm typecheck
196212
build:
197213
name: Build GO Web App
198214
environment: 'test'
199-
needs: [lint, lint-css, test, ui]
200215
runs-on: ubuntu-latest
216+
defaults:
217+
run:
218+
working-directory: app
219+
needs: [lint, lint-css, test, ui]
201220
steps:
202221
- uses: actions/checkout@v4
203-
- uses: actions/setup-node@v4
222+
- name: Install pnpm
223+
uses: pnpm/action-setup@v4
224+
- name: Install Node.js
225+
uses: actions/setup-node@v4
204226
with:
205227
node-version: 20
206-
cache: 'yarn'
228+
cache: 'pnpm'
229+
- name: Install dependencies
230+
run: pnpm install
207231

208232
- uses: actions/download-artifact@v4
209233
with:
210234
name: ui-build
211235
path: packages/ui/dist
212236

213-
- name: Install dependencies
214-
run: yarn install --frozen-lockfile
215-
working-directory: app
216-
217237
- name: Build
218-
run: yarn build
219-
working-directory: app
238+
run: pnpm build
220239

221240
validate_helm:
222241
name: Validate Helm

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
enable-pre-post-scripts=true

0 commit comments

Comments
 (0)