build: 📦 nrwl monorepo to v20.1.1 #536
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR's | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
env: | |
PR_NUMBER: ${{ github.event.pull_request.number }} | |
jobs: | |
pr-test: | |
uses: ./.github/workflows/basic-test.yml | |
pr-e2e-test: | |
uses: ./.github/workflows/e2e-test.yml | |
check-commit-lint: | |
name: Check commit message follows guidelines | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
- name: Execute commitlint | |
run: npx commitlint --from=origin/${{ github.base_ref }} | |
check-file-format: | |
name: Check files changes follow guidelines | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
- name: Check if Prettier was run | |
run: npx pretty-quick --check | |
backwards-compatibility-test: | |
needs: [pr-test] | |
uses: ./.github/workflows/backwards-compatibility-test.yml | |
pr-analysis: | |
name: SonarCloud Pr Analysis | |
runs-on: ubuntu-latest | |
needs: pr-test | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
# Download reports | |
- uses: ./.github/actions/download-coverage-report | |
- uses: ./.github/actions/download-lint-report | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONARQUBE_SCANNER }} | |
with: | |
args: > | |
-Dsonar.pullrequest.key=${{ github.env.PR_NUMBER }} |