diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..a9b2a1e --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,22 @@ +name: Check build and tests on PR and merge to live + +on: + pull_request: + branches: + - "*" + push: + branches: + - live + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20.x" + registry-url: "https://registry.npmjs.org" + - run: npm install + - run: npm run build + - run: npm test diff --git a/.github/workflows/main.yml b/.github/workflows/publish.yml similarity index 100% rename from .github/workflows/main.yml rename to .github/workflows/publish.yml diff --git a/package-lock.json b/package-lock.json index 31cf2c5..3477703 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@rcpch/digital-growth-charts-react-component-library", - "version": "7.0.0", + "version": "7.0.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@rcpch/digital-growth-charts-react-component-library", - "version": "7.0.0", + "version": "7.0.4", "license": "AGPL-3.0-or-later", "dependencies": { "sass": "1.70.0", diff --git a/src/RCPCHChart/RCPCHChart.test.tsx b/src/RCPCHChart/RCPCHChart.test.tsx index 9b744d2..807bd86 100644 --- a/src/RCPCHChart/RCPCHChart.test.tsx +++ b/src/RCPCHChart/RCPCHChart.test.tsx @@ -13,7 +13,6 @@ describe("RCPCHChart", () => { props = { reference: 'uk-who', title: 'TestChartTitle', - subtitle: 'TestChartSubtitle', measurementMethod: 'height', sex: 'male', midParentalHeightData: {}, @@ -21,14 +20,16 @@ describe("RCPCHChart", () => { enableExport: false, exportChartCallback: ()=>null, clinicianFocus: false, - measurementsArray: [], - chartStyle: chartObject, - axisStyle: axesObject, - gridlineStyle: gridlinesObject, - centileStyle: centilesObject, - sdsStyle: sdsObject, - measurementStyle: measurementObjects, + measurements: {}, chartType:'centile', + customThemeStyles: { + chartStyle: chartObject, + axisStyle: axesObject, + gridlineStyle: gridlinesObject, + centileStyle: centilesObject, + sdsStyle: sdsObject, + measurementStyle: measurementObjects, + } }; });