From 92ffd1c6cf9b667c3a9b612493fdd560500f0c43 Mon Sep 17 00:00:00 2001 From: Liviu Burcusel Date: Tue, 23 Dec 2025 11:48:53 +0100 Subject: [PATCH 1/3] Removed pull_request section from workflow --- .forgejo/workflows/production-build.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.forgejo/workflows/production-build.yml b/.forgejo/workflows/production-build.yml index 1227d72..0c4e758 100644 --- a/.forgejo/workflows/production-build.yml +++ b/.forgejo/workflows/production-build.yml @@ -6,10 +6,6 @@ on: push: branches: - production - pull_request: - branches: - - production - types: [opened, synchronize, reopened] env: FORGEJO_HOST: git.burcusel.nl CONTAINER_NAME: glowing-fiesta -- 2.49.1 From bc10eb25c76ed1e39b979c8c2c19b1db88cb0fab Mon Sep 17 00:00:00 2001 From: Liviu Burcusel Date: Tue, 23 Dec 2025 11:50:01 +0100 Subject: [PATCH 2/3] Added workflow to be run on production PR --- .forgejo/workflows/production-pr.yml | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .forgejo/workflows/production-pr.yml diff --git a/.forgejo/workflows/production-pr.yml b/.forgejo/workflows/production-pr.yml new file mode 100644 index 0000000..82530fb --- /dev/null +++ b/.forgejo/workflows/production-pr.yml @@ -0,0 +1,38 @@ +name: Production PR +permissions: + contents: read + pull-requests: write +on: + pull_request: + branches: + - production + types: [opened, synchronize, reopened] +jobs: + qa-tests: + name: QA Tests + runs-on: node24 + steps: + - name: Setup Node environment + uses: actions/setup-node@v4 + with: + node-version: "24" + - name: Code checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install dependencies + run: npm ci + - name: Run tests and generate coverage + run: npm run coverage + # continue-on-error: true + # env: + # CI: true + - name: SonarQube Scan + uses: https://github.com/SonarSource/sonarqube-scan-action@v6 + with: + args: > + -Dsonar.projectKey=GF-dev + -Dsonar.projectName="Glowing Fiesta (DEV)" + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} -- 2.49.1 From aedbf5fd3ed84ed04e31693daa1bd96e1a39a9e6 Mon Sep 17 00:00:00 2001 From: Liviu Burcusel Date: Tue, 23 Dec 2025 12:02:13 +0100 Subject: [PATCH 3/3] Fixed the escaping of parameters --- .forgejo/workflows/production-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/production-pr.yml b/.forgejo/workflows/production-pr.yml index 82530fb..e396db3 100644 --- a/.forgejo/workflows/production-pr.yml +++ b/.forgejo/workflows/production-pr.yml @@ -31,8 +31,8 @@ jobs: uses: https://github.com/SonarSource/sonarqube-scan-action@v6 with: args: > - -Dsonar.projectKey=GF-dev - -Dsonar.projectName="Glowing Fiesta (DEV)" + "-Dsonar.projectKey=GF-dev" + "-Dsonar.projectName=Glowing Fiesta (DEV)" env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} -- 2.49.1