Skip to content

Commit a610b6b

Browse files
committed
chore: clean up examples etc for 2.6.0
Signed-off-by: Josef Andersson <josef.andersson@digg.se>
1 parent e1e1387 commit a610b6b

7 files changed

Lines changed: 147 additions & 13 deletions

File tree

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,18 @@ jobs:
139139
contents: read
140140
packages: read
141141
security-events: write
142-
secrets: inherit
142+
secrets: inherit
143143
with:
144144
project-type: maven # or npm, gradle, gradle-android, xcode-ios
145-
# Optional: Configure linters (all enabled by default)
146-
# linters.commitlint: true
147-
# linters.licenselint: true
148-
# linters.dependencyreview: true
149-
# linters.megalint: true # Heavy, comprehensive
150-
# linters.publiccodelint: false
151-
# linters.justmiselint: false # Lightweight, just+mise-based (requires justfile)
152-
# linters.swiftlint: false # Swift linting for iOS/macOS projects
145+
# Recommended: Use devbase-check (lightweight, just+mise-based)
146+
linters.devbasecheck: true
147+
linters.commitlint: false
148+
linters.licenselint: false
149+
linters.megalint: false
150+
# Optional linters:
151+
# linters.dependencyreview: true # Dependency vulnerability scan
152+
# linters.publiccodelint: false # publiccode.yml validation
153+
# linters.swiftlint: false # Swift linting for iOS/macOS
153154
```
154155

155156
3. **Create release workflow** - Trigger builds on tags:

examples/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Complete working examples for different project types.
1414
**Use case:** Java/Spring Boot application with container
1515

1616
**Contains:**
17+
- Pull request workflow with devbase-check linting
1718
- Maven application configuration
1819
- Container build with multi-platform support
1920
- GitHub Packages publishing
@@ -29,6 +30,7 @@ Complete working examples for different project types.
2930
**Use case:** Node.js/TypeScript application with container
3031

3132
**Contains:**
33+
- Pull request workflow with devbase-check linting
3234
- NPM application configuration
3335
- Container build with multi-platform support
3436
- GitHub Packages publishing
@@ -45,6 +47,7 @@ Complete working examples for different project types.
4547
**Use case:** Gradle/Android application
4648

4749
**Contains:**
50+
- Pull request workflow with devbase-check linting
4851
- Gradle build configuration
4952
- Android-specific tasks (APK, AAB)
5053
- Version code auto-increment
@@ -91,7 +94,8 @@ Complete working examples for different project types.
9194
# Copy artifacts configuration
9295
cp artifacts.yml /path/to/your/project/.github/
9396

94-
# Copy workflow
97+
# Copy workflows
98+
cp pullrequest-workflow.yml /path/to/your/project/.github/workflows/
9599
cp release-workflow.yml /path/to/your/project/.github/workflows/
96100
```
97101

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
name: Pull Request Workflow
6+
7+
on:
8+
pull_request:
9+
branches:
10+
- main
11+
- develop
12+
13+
permissions:
14+
contents: read
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
pr-checks:
22+
uses: diggsweden/reusable-ci/.github/workflows/pullrequest-orchestrator.yml@main
23+
secrets: inherit
24+
permissions:
25+
contents: read
26+
packages: read
27+
security-events: write
28+
with:
29+
project-type: gradle
30+
# Recommended: Use devbase-check (lightweight, just+mise-based)
31+
linters.devbasecheck: true
32+
linters.commitlint: false
33+
linters.licenselint: false
34+
linters.megalint: false
35+
36+
# Optional: Add project-specific tests
37+
# test:
38+
# needs: [pr-checks]
39+
# if: always()
40+
# permissions:
41+
# contents: read
42+
# packages: read
43+
# uses: ./.github/workflows/test.yml
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
name: Pull Request Workflow
6+
7+
on:
8+
pull_request:
9+
branches:
10+
- main
11+
- develop
12+
13+
permissions:
14+
contents: read
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
pr-checks:
22+
uses: diggsweden/reusable-ci/.github/workflows/pullrequest-orchestrator.yml@main
23+
secrets: inherit
24+
permissions:
25+
contents: read
26+
packages: read
27+
security-events: write
28+
with:
29+
project-type: maven
30+
# Recommended: Use devbase-check (lightweight, just+mise-based)
31+
linters.devbasecheck: true
32+
linters.commitlint: false
33+
linters.licenselint: false
34+
linters.megalint: false
35+
36+
# Optional: Add project-specific tests
37+
# test:
38+
# needs: [pr-checks]
39+
# if: always()
40+
# permissions:
41+
# contents: read
42+
# packages: read
43+
# uses: ./.github/workflows/test.yml
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
name: Pull Request Workflow
6+
7+
on:
8+
pull_request:
9+
branches:
10+
- main
11+
- develop
12+
13+
permissions:
14+
contents: read
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
pr-checks:
22+
uses: diggsweden/reusable-ci/.github/workflows/pullrequest-orchestrator.yml@main
23+
secrets: inherit
24+
permissions:
25+
contents: read
26+
packages: read
27+
security-events: write
28+
with:
29+
project-type: npm
30+
# Recommended: Use devbase-check (lightweight, just+mise-based)
31+
linters.devbasecheck: true
32+
linters.commitlint: false
33+
linters.licenselint: false
34+
linters.megalint: false
35+
36+
# Optional: Add project-specific tests
37+
# test:
38+
# needs: [pr-checks]
39+
# if: always()
40+
# permissions:
41+
# contents: read
42+
# packages: read
43+
# uses: ./.github/workflows/test.yml

scripts/lint/generate-status-report.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ set -euo pipefail
2828
IFS='|' read -ra DEPRECATED_ARRAY <<<"$DEPRECATED_LIST"
2929
for name in "${DEPRECATED_ARRAY[@]}"; do
3030
[[ -z "$name" ]] && continue
31-
printf "> - **%s** - Migrate to \`linters.justmiselint: true\`\n" "$name"
31+
printf "> - **%s** - Migrate to \`linters.devbasecheck: true\`\n" "$name"
3232
done
3333

3434
printf ">\n"
35-
printf "> Please update your workflow to use \`linters.justmiselint: true\` and disable deprecated linters.\n\n"
35+
printf "> Please update your workflow to use \`linters.devbasecheck: true\` and disable deprecated linters.\n\n"
3636
fi
3737

3838
# Status table

tests/lint-generate-status-report.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ run_generate_status_report() {
237237

238238
assert_success
239239
run get_summary
240-
assert_output --partial "justmiselint"
240+
assert_output --partial "devbasecheck"
241241
}
242242

243243
@test "generate-status-report.sh marks deprecated linter in table" {

0 commit comments

Comments
 (0)