Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ updates:
directory: "/"
schedule:
interval: "weekly"
cooldown:
default-days: 7
open-pull-requests-limit: 10
groups:
actions:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches: [main]
pull_request:
# edited: check the PR title again after it is changed
types: [opened, synchronize, reopened, edited]
branches: [main]

permissions: {}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Release

on:
release:
branches: [main]
types: [released]
workflow_dispatch:
inputs:
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/self-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,17 @@ jobs:
extra-args: -std=c++14 -Wall

- name: Fail fast?!
# if: steps.linter.outputs.checks-failed > 0
# if: ${{ !contains(fromJSON('["0", ""]'), steps.linter.outputs.checks-failed) }}
shell: bash
env:
CHECKS_FAILED: ${{ steps.linter.outputs.checks-failed }}
TIDY_CHECKS_FAILED: ${{ steps.linter.outputs.clang-tidy-checks-failed }}
FORMAT_CHECKS_FAILED: ${{ steps.linter.outputs.clang-format-checks-failed }}
run: |
echo "some linter checks failed"
echo "total checks-failed: ${{ steps.linter.outputs.checks-failed }}"
echo "clang-tidy checks-failed: ${{ steps.linter.outputs.clang-tidy-checks-failed }}"
echo "clang-format checks-failed: ${{ steps.linter.outputs.clang-format-checks-failed }}"
echo "total checks-failed: $CHECKS_FAILED"
echo "clang-tidy checks-failed: $TIDY_CHECKS_FAILED"
echo "clang-format checks-failed: $FORMAT_CHECKS_FAILED"
Comment thread
shenxianpeng marked this conversation as resolved.
Resolved
# for actual deployment
# run: exit 1

Expand Down Expand Up @@ -127,6 +132,8 @@ jobs:
step-summary: false

- name: Assert auto-fix committed the formatting changes
env:
FORMAT_CHECKS_FAILED: ${{ steps.linter.outputs.clang-format-checks-failed }}
run: |
set -euo pipefail

Expand Down Expand Up @@ -164,7 +171,7 @@ jobs:
exit 1
fi

failed='${{ steps.linter.outputs.clang-format-checks-failed }}'
failed="$FORMAT_CHECKS_FAILED"
if [ "${failed:-0}" != "0" ]; then
echo "::error title=auto-fix::clang-format still reports $failed issue(s) after auto-fix"
exit 1
Expand Down
Loading