diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml new file mode 100644 index 0000000..3b4d70f --- /dev/null +++ b/.github/workflows/build-check.yml @@ -0,0 +1,28 @@ +name: Buildable check +on: + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + # Checkout the repository + - name: Checkout repository + uses: actions/checkout@v3 + + # Set up Node.js + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 20.11 + + # Install dependencies + - name: Install dependencies + run: npm i + + # Build the project + - name: Build project + run: npm run build diff --git a/src/components/DetailBar/ResultsBar.vue b/src/components/DetailBar/ResultsBar.vue index efbe641..02d1e4a 100644 --- a/src/components/DetailBar/ResultsBar.vue +++ b/src/components/DetailBar/ResultsBar.vue @@ -22,9 +22,8 @@ import { } from 'chart.js' import { Bar } from 'vue-chartjs' import ChartDataLabels from 'chartjs-plugin-datalabels' -import type { Results } from '@/models/project' import type { Emission } from '@/models/material' -import { GeometryObject } from '@/models/geometryObject' +import type { GeometryObject } from '@/models/geometryObject' ChartJS.register( Title, diff --git a/src/components/Graphs/GraphContainer.vue b/src/components/Graphs/GraphContainer.vue index 34dc338..7bc2399 100644 --- a/src/components/Graphs/GraphContainer.vue +++ b/src/components/Graphs/GraphContainer.vue @@ -26,7 +26,9 @@ import { materialResultsToMaterialChartData, geometryToMaterialTypeNestedChartData } from '@/utils/resultUtils' -import { ChartData, ChartOptions, NestedChartData } from '@/models/chartModels' + +// Type imports +import type { ChartData, ChartOptions, NestedChartData } from '@/models/chartModels' const navigationStore = useNavigationStore() const resultStore = useResultStore() diff --git a/src/components/Mapping/MaterialBar.vue b/src/components/Mapping/MaterialBar.vue index 05fa2ec..f84f0e7 100644 --- a/src/components/Mapping/MaterialBar.vue +++ b/src/components/Mapping/MaterialBar.vue @@ -38,7 +38,8 @@