From 5271def919ff2e1a7b4e8afab763a87f14b9418b Mon Sep 17 00:00:00 2001 From: Noa <112948247+nlauvray@users.noreply.github.com> Date: Tue, 8 Jul 2025 08:17:23 +0200 Subject: [PATCH 1/3] Update frontcicd.yml --- .github/workflows/frontcicd.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/.github/workflows/frontcicd.yml b/.github/workflows/frontcicd.yml index 9946b12..2228981 100644 --- a/.github/workflows/frontcicd.yml +++ b/.github/workflows/frontcicd.yml @@ -26,34 +26,6 @@ jobs: - name: Build Angular app run: npm run build working-directory: ./ - test: - runs-on: ubuntu-latest - services: - postgres: - image: postgres:latest - env: - POSTGRES_USER: sanalyz - POSTGRES_PASSWORD: sanalyz - POSTGRES_DB: sanalyz - ports: - - 5432:5432 - options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set up JDK 21 - uses: actions/setup-java@v3 - with: - java-version: '21' - distribution: 'temurin' - cache: 'maven' - - - name: Run tests - run: mvn test - working-directory: ./API - gh-pages-deploy: runs-on: ubuntu-latest From c36fea9417d70fa12a890376585a2e5aa56e369b Mon Sep 17 00:00:00 2001 From: Noa <112948247+nlauvray@users.noreply.github.com> Date: Tue, 8 Jul 2025 08:25:33 +0200 Subject: [PATCH 2/3] Update frontcicd.yml --- .github/workflows/frontcicd.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/frontcicd.yml b/.github/workflows/frontcicd.yml index 2228981..c7e33c2 100644 --- a/.github/workflows/frontcicd.yml +++ b/.github/workflows/frontcicd.yml @@ -2,6 +2,9 @@ name: Test CI trigger on: [push] +permissions: + contents: write + jobs: frontend-build-and-test: runs-on: ubuntu-latest From 5455e658e865b008e56c65dbb0b700238b0003b8 Mon Sep 17 00:00:00 2001 From: Noa <112948247+nlauvray@users.noreply.github.com> Date: Tue, 8 Jul 2025 08:30:15 +0200 Subject: [PATCH 3/3] Update frontcicd.yml --- .github/workflows/frontcicd.yml | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/.github/workflows/frontcicd.yml b/.github/workflows/frontcicd.yml index c7e33c2..970e15d 100644 --- a/.github/workflows/frontcicd.yml +++ b/.github/workflows/frontcicd.yml @@ -29,34 +29,3 @@ jobs: - name: Build Angular app run: npm run build working-directory: ./ - - gh-pages-deploy: - runs-on: ubuntu-latest - needs: frontend-build-and-test - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '21' - - - name: Build Angular app - run: | - npm install - npm run build - working-directory: ./ - - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v4 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./ - - deploy: - runs-on: ubuntu-latest - needs: [frontend-build-and-test, gh-pages-deploy] - steps: - - name: Final deployment - run: echo "Deployment done"