Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
VexedUXR committed Dec 1, 2024
1 parent f2233ac commit a1d39df
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,24 @@ jobs:
name: Style Checker
runs-on: ubuntu-latest
steps:
- run: |
echo "DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" > $GITHUB_ENV
- name: checkout
uses: actions/checkout@v4
env:
ACTIONS_STEP_DEBUG: true
with:
fetch-depth: 0
fetch-depth: ${{ env.DEPTH }}
ref: ${{ github.event.pull_request.head.sha }}
- name: Install packages
run: |
sudo apt-get update --quiet || true
sudo apt-get -yq --no-install-suggests --no-install-recommends install perl
- name: Run checker
run: |
git rev-parse HEAD
time git rev-parse ${{ github.event.pull_request.base.sha }}^
time git merge-base ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
exit 1
sha=$(git merge-base ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }})
tools/build/checkstyle9.pl --github ${sha}..${{ github.event.pull_request.head.sha }}

0 comments on commit a1d39df

Please sign in to comment.