Skip to content

Merge pull request #32 from softwareone-platform/MPT-10795_fix_billin… #130

Merge pull request #32 from softwareone-platform/MPT-10795_fix_billin…

Merge pull request #32 from softwareone-platform/MPT-10795_fix_billin… #130

name: PR build and merge
on:
pull_request:
types: [ opened, synchronize, reopened ]
push:
branches:
- main
- "release/**"
- "fb/**"
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Create environment file'
run: touch .env
- name: 'Build test containers'
run: docker compose build app_test
- name: 'Run validation & test'
run: docker compose run --service-ports app_test
- name: 'Run SonarCloud Scan'
uses: SonarSource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: 'Run SonarQube Quality Gate check'
uses: SonarSource/sonarqube-quality-gate-action@master
timeout-minutes: 5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: 'Stop containers'
if: always()
run: docker compose down