Skip to content

Commit dbfa2ba

Browse files
authored
Reconfigure some CI - Add summaries (#742)
1 parent 25a17c4 commit dbfa2ba

File tree

3 files changed

+23
-14
lines changed

3 files changed

+23
-14
lines changed

.github/workflows/line-count.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check Line Counts
1+
name: Lines of Code
22

33
on: [push, pull_request, workflow_dispatch]
44

.github/workflows/lint-source.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1-
name: Lint Source Code
1+
name: Lint Source
22

33
on: [push, pull_request, workflow_dispatch]
44

55
jobs:
6-
lint:
7-
name: Lint Source Code
8-
runs-on: macos-latest
6+
file-changes:
7+
name: Detect File Changes
8+
runs-on: 'ubuntu-latest'
9+
outputs:
10+
checkall: ${{ steps.changes.outputs.checkall }}
11+
steps:
12+
- name: Clone
13+
uses: actions/checkout@v4
14+
15+
- name: Detect Changes
16+
uses: dorny/paths-filter@v3
17+
id: changes
18+
with:
19+
filters: ".github/file-filter.yml"
20+
21+
lint-source:
22+
name: Lint Source
23+
runs-on: 'ubuntu-latest'
924

1025
steps:
1126
- uses: actions/checkout@v4
@@ -14,10 +29,4 @@ jobs:
1429
run: pip install fortitude-lint ansi2txt
1530

1631
- name: Lint the source code
17-
run: fortitude check --ignore=E001,S001,S101,M011,F001,S041,T001 ./src/*/* &> lint.txt || true
18-
19-
- name: Sanitize
20-
run: cat lint.txt | ansi2txt > lint2.txt
21-
22-
- name: Output Summary
23-
run: cat lint2.txt << EOF > $GITHUB_STEP_SUMMARY
32+
run: fortitude check --ignore=E001,S001,S101,M011,F001,S041,T001 ./src/*/* || true

.github/workflows/lint.yml renamed to .github/workflows/lint-toolchain.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Lint
1+
name: Lint Toolchain
22

33
on: [push, pull_request, workflow_dispatch]
44

55
jobs:
6-
docs:
6+
lint-toolchain:
77
name: Lint Toolchain
88
runs-on: ubuntu-latest
99

0 commit comments

Comments
 (0)