Skip to content

MPT-3586 Do not pass commitment period for one-time items #101

MPT-3586 Do not pass commitment period for one-time items

MPT-3586 Do not pass commitment period for one-time items #101

Workflow file for this run

name: PR build and merge
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
- "release/**"
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Build test containers'
run: docker compose build app_test
- name: 'Run validation & test'
run: docker compose run --service-ports app_test
- name: 'Fix coverage paths for SonarCloud'
run: |
sed -i 's/\/swo\/swo\/mpt\/cli/\/github\/workspace\/swo\/mpt\/cli/g' coverage.xml
- name: 'Run SonarCloud Scan'
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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