Skip to content

Commit fbd5ed5

Browse files
authored
Merge pull request #91 from rcpch/mbarton/ci
Add PR checks
2 parents 2926d80 + 1055a1b commit fbd5ed5

File tree

4 files changed

+33
-10
lines changed

4 files changed

+33
-10
lines changed

.github/workflows/check.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Check build and tests on PR and merge to live
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "*"
7+
push:
8+
branches:
9+
- live
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: "20.x"
19+
registry-url: "https://registry.npmjs.org"
20+
- run: npm install
21+
- run: npm run build
22+
- run: npm test
File renamed without changes.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/RCPCHChart/RCPCHChart.test.tsx

+9-8
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,23 @@ describe("RCPCHChart", () => {
1313
props = {
1414
reference: 'uk-who',
1515
title: 'TestChartTitle',
16-
subtitle: 'TestChartSubtitle',
1716
measurementMethod: 'height',
1817
sex: 'male',
1918
midParentalHeightData: {},
2019
enableZoom: false,
2120
enableExport: false,
2221
exportChartCallback: ()=>null,
2322
clinicianFocus: false,
24-
measurementsArray: [],
25-
chartStyle: chartObject,
26-
axisStyle: axesObject,
27-
gridlineStyle: gridlinesObject,
28-
centileStyle: centilesObject,
29-
sdsStyle: sdsObject,
30-
measurementStyle: measurementObjects,
23+
measurements: {},
3124
chartType:'centile',
25+
customThemeStyles: {
26+
chartStyle: chartObject,
27+
axisStyle: axesObject,
28+
gridlineStyle: gridlinesObject,
29+
centileStyle: centilesObject,
30+
sdsStyle: sdsObject,
31+
measurementStyle: measurementObjects,
32+
}
3233
};
3334
});
3435

0 commit comments

Comments
 (0)