diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..9cc19b0 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,9 @@ +## Content of the PR + +> Describe what this PR does and why + +## How did you test ? + +> How did you verify that your work change and one can other verify it + + diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml new file mode 100644 index 0000000..65b00af --- /dev/null +++ b/.github/workflows/frontend-ci.yml @@ -0,0 +1,43 @@ +# https://turbo.build/repo/docs/ci/github-actions + +name: Test Frontend CI + +on: + pull_request: + branches: + - main + paths: + - 'frontend/**' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js environment + uses: actions/setup-node@v4 + with: + node-version: '22' + + - name: Cache node modules + uses: actions/cache@v4 + with: + path: frontend/node_modules + key: ${{ runner.os }}-node-${{ hashFiles('**/frontend/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: Install dependencies + working-directory: frontend + run: yarn install + + - name: Run lint + working-directory: frontend + run: yarn lint + + - name: Run build + working-directory: frontend + run: yarn build diff --git a/frontend/src/app/epd/[id]/page.tsx b/frontend/src/app/epd/[id]/page.tsx index 2a34c2e..7a5b749 100644 --- a/frontend/src/app/epd/[id]/page.tsx +++ b/frontend/src/app/epd/[id]/page.tsx @@ -55,7 +55,9 @@ export default function SearchApp() { {results.map((result) => (
{result.description}
++ {result.functionalUnit} +