diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74ce6e9..16ae267 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,12 +10,34 @@ permissions: contents: read jobs: + actionlint: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Actionlint + uses: docker://rhysd/actionlint:1.7.12 + test: runs-on: ubuntu-latest timeout-minutes: 20 steps: - name: Checkout uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: Check whitespace + run: | + set -euo pipefail + if [ "${{ github.event_name }}" = "pull_request" ]; then + git fetch --no-tags --depth=1 origin "${{ github.base_ref }}" + git diff --check "origin/${{ github.base_ref }}...HEAD" + else + git diff-tree --check --no-commit-id --root -r HEAD + fi - name: Resolve QuantPlatformKit ref id: quant-platform-kit-ref