diff --git a/.github/workflows/build.yaml b/.github/workflows/ci.yaml similarity index 58% rename from .github/workflows/build.yaml rename to .github/workflows/ci.yaml index 0c90339..8918820 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/ci.yaml @@ -1,9 +1,24 @@ -name: ci-build +name: ci-node-workflow on: pull_request: branches: - - main + - develop jobs: + sonarcloud: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: 22 + - run: npm run test:cov + - name: SonarQube Scan + uses: sonarsource/sonarqube-scan-action@v4.1.0 # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/official-sonarqube-scan + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} check-application: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/quality-gate.yaml b/.github/workflows/quality-gate.yaml deleted file mode 100644 index 9de5336..0000000 --- a/.github/workflows/quality-gate.yaml +++ /dev/null @@ -1,22 +0,0 @@ -name: ci-sonarcloud -on: - pull_request: - branches: - - develop - - main -jobs: - sonarcloud: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: actions/setup-node@v4 - with: - node-version: 22 - - run: npm run test:cov - - name: SonarQube Scan - uses: sonarsource/sonarqube-scan-action@v4.1.0 # Ex: v2.1.0, See the latest version at https://github.com/marketplace/actions/official-sonarqube-scan - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}