chore(deps): pin dependencies #322
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: Pull Request Pipeline | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
is-renovate-bot: | |
name: "[Opened] Is Renovate Bot?" | |
if: github.event_name == 'pull_request' | |
runs-on: ubuntu-latest | |
outputs: | |
isRenovateBot: ${{ steps.check-actor.outputs.isRenovateBot }} | |
steps: | |
- name: Check Actor | |
id: check-actor | |
run: | | |
if [[ '${{ github.actor }}' == 'renovate[bot]' || '${{ github.actor }}' == 'renovate-bot' ]]; then | |
echo "::set-output name=isRenovateBot::1" | |
else | |
echo "::set-output name=isRenovateBot::0" | |
fi | |
test-renovate: | |
name: "YES - Run all tests" | |
needs: is-renovate-bot | |
if: needs.is-renovate-bot.outputs.isRenovateBot == '1' | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Run unit test | |
uses: ./.github/actions/tests/unit-test | |
timeout-minutes: 20 | |
test-affected-pr: | |
name: "NO - Run tests for affected projects" | |
needs: is-renovate-bot | |
if: needs.is-renovate-bot.outputs.isRenovateBot == '0' | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Echo Message | |
run: echo "Running tests for affected PR" | |
run-sonarqube: | |
name: "[Merged] Run SonarQube Analysis" | |
if: github.event_name == 'push' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Echo Message | |
run: echo "Running SonarQube Analysis" | |