Skip to content

Commit

Permalink
Fix: Remove node.js warnings in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieJQuinn committed Feb 8, 2024
1 parent 559d68b commit 4c65010
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/check_policies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,25 @@ jobs:
check-commit-messages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# Checkout with full history, not just latest revision.
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: |
bash .github/workflows/check_commit_messages.sh \
${{ github.event.before }} ${{ github.event.after }}
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/checkout@v3
with:
python-version: '3.10'
- run: pip install fprettify
- run: fprettify --config .fprettify.ini --diff --recursive src
- run: if [[ ! -z "$($FPRETTIFY_COMMAND)" ]]; then echo "::warning::Code formatting issues detected"; fi
- run: if [[ ! -z "$($FPRETTIFY_COMMAND)" ]]; then echo "::warning::Code formatting issues detected. See log for details."; fi
env:
FPRETTIFY_COMMAND: fprettify --config .fprettify.ini --diff --recursive src

0 comments on commit 4c65010

Please sign in to comment.