diff --git a/.github/workflows/maven.yml b/.github/workflows/backend.yml similarity index 84% rename from .github/workflows/maven.yml rename to .github/workflows/backend.yml index 5f6ed9d0d..76a2812ab 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/backend.yml @@ -6,7 +6,7 @@ # separate terms of service, privacy policy, and support # documentation. -name: Java CI with Maven +name: Build Backend on: push: @@ -43,10 +43,7 @@ jobs: cache: maven - name: Create Maven settings.xml run: | - echo " + echo " github diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml new file mode 100644 index 000000000..3d528b71a --- /dev/null +++ b/.github/workflows/frontend.yml @@ -0,0 +1,35 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Build Frontend + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + defaults: + run: + working-directory: "./frontend" + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18.x, 20.x] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test