Skip to content

Commit bc53ed3

Browse files
committed
CI: suggest source maintenance changes
1 parent 84bb09a commit bc53ed3

2 files changed

Lines changed: 42 additions & 24 deletions

File tree

.github/workflows/quick.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -81,30 +81,6 @@ jobs:
8181
${{ runner.temp }}/*.log
8282
/usr/local/squid/var/logs/overlord/*.log
8383
84-
source-maintenance-tests:
85-
86-
runs-on: ubuntu-22.04
87-
88-
steps:
89-
- name: Install prerequisite packages
90-
run: |
91-
sudo apt-get --quiet=2 update
92-
sudo apt-get --quiet=2 install astyle
93-
sudo apt-get --quiet=2 install gperf
94-
pip install \
95-
--user \
96-
--no-cache-dir \
97-
--disable-pip-version-check \
98-
--quiet \
99-
--progress-bar off \
100-
codespell==1.16 # TODO: Upgrade to codespell v2
101-
102-
- uses: actions/checkout@v4
103-
with:
104-
fetch-depth: ${{ env.CHECKOUT_FETCH_DEPTH }}
105-
106-
- run: ./test-suite/test-sources.sh
107-
10884
build-tests:
10985

11086
strategy:
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Source maintenance
2+
3+
on:
4+
pull_request:
5+
# test PRs targeting this branch code
6+
branches: [ "master" ]
7+
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
12+
jobs:
13+
source-maintenance:
14+
15+
runs-on: ubuntu-22.04
16+
17+
steps:
18+
- name: Install prerequisite packages
19+
run: |
20+
sudo apt-get --quiet=2 update
21+
sudo apt-get --quiet=2 install astyle
22+
sudo apt-get --quiet=2 install gperf
23+
pip install \
24+
--user \
25+
--no-cache-dir \
26+
--disable-pip-version-check \
27+
--quiet \
28+
--progress-bar off \
29+
codespell==1.16 # TODO: Upgrade to codespell v2
30+
31+
- uses: actions/checkout@v4
32+
with:
33+
fetch-depth: ${{ env.CHECKOUT_FETCH_DEPTH }}
34+
35+
- run: ./test-suite/test-sources.sh
36+
37+
- uses: parkerbxyz/suggest-changes@v1
38+
with:
39+
comment: 'Please assess and commit source lint changes'
40+
event: 'REQUEST_CHANGES'
41+
42+

0 commit comments

Comments
 (0)