Skip to content

Commit 4d87b01

Browse files
Merge pull request #492 from PeterYurkovich/ou-963
OU-963: add translation string test
2 parents ca8e1e3 + a3218cc commit 4d87b01

3 files changed

Lines changed: 18 additions & 4 deletions

File tree

Dockerfile.test

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
FROM registry.redhat.io/ubi9/nodejs-20:1-59 AS web-builder
22

3+
USER 0
4+
35
WORKDIR /usr/src/app
46

5-
COPY web/package.json web/package-lock.json ./
6-
RUN npm ci
7+
COPY web/package*.json web/
8+
COPY Makefile Makefile
9+
10+
RUN make install-frontend-ci
711

8-
COPY web/. .
12+
COPY web/. web/.
13+
COPY scripts/. scripts/.
914

10-
ENTRYPOINT ["npm", "run", "lint"]
15+
ENTRYPOINT ["make", "lint-frontend"]

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,7 @@ mcp-podman-cross-build:
100100
podman manifest create ${IMAGE}
101101
podman build --platform $(PLATFORMS) --manifest ${IMAGE} -f Dockerfile.mcp
102102
podman manifest push ${IMAGE}
103+
104+
.PHONY: test-translations
105+
test-translations:
106+
./scripts/test-translations.sh

scripts/test-translations.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
cd web && npm run i18n
4+
[ $(git status --porcelain=1 | wc -l) -ne 0 ] && exit 1
5+
exit 0

0 commit comments

Comments
 (0)