Added workflow to be run on production PR
All checks were successful
Production PR / QA Tests (pull_request) Successful in 37s
All checks were successful
Production PR / QA Tests (pull_request) Successful in 37s
This commit is contained in:
parent
92ffd1c6cf
commit
bc10eb25c7
1 changed files with 38 additions and 0 deletions
38
.forgejo/workflows/production-pr.yml
Normal file
38
.forgejo/workflows/production-pr.yml
Normal file
|
|
@ -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 }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue