Skip to content

Commit

Permalink
Remote custom action used to validate a PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniotarricone committed Oct 25, 2024
1 parent 450d101 commit f7d2097
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 114 deletions.
81 changes: 0 additions & 81 deletions .github/actions/setup-java-build-env/action.yml

This file was deleted.

36 changes: 3 additions & 33 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,9 @@ jobs:
runs-on: ubuntu-22.04

steps:
- name: PR title validation
uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # 5.5.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
docs
refactor
chore
fix
feat
breaking
requireScope: false
subjectPattern: ^[A-Z].+$
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
doesn't match the configured pattern. Please ensure that the subject
starts with an uppercase character.
wip: false

- name: Checkout the source code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2

#
# Setup Java Build Environment.
#
- name: Setup Java Build Environment
uses: ./.github/actions/setup-java-build-env
- name: PR validation
uses: pagopa/mil-actions/pr-validation@main
with:
gh_user: ${{ secrets.GIT_USER }}
gh_token: ${{ secrets.GIT_PAT }}

- name: Execute unit-test + Calculate test coverage + SCA with Sonar
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ${{ runner.temp }}/maven/bin/mvn verify -Pvalidate -s ${{ runner.temp }}/settings.xml --no-transfer-progress
sonar_token: ${{ secrets.SONAR_TOKEN }}

0 comments on commit f7d2097

Please sign in to comment.