Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github workflow enhancements #366

Merged
merged 4 commits into from
Oct 6, 2020
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
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ updates:
schedule:
interval: "weekly"
open-pull-requests-limit: 5
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
5 changes: 4 additions & 1 deletion .github/workflows/detekt.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Run deteKT

on:
pull_request
push:
branches: [ master ]
pull_request:

jobs:
test:
Expand All @@ -21,5 +23,6 @@ jobs:
key: ${{ runner.os }}-maven-detekt-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-detekt-
# when running detekt with type resolution, we need to have all project modules compiled too
- name: running deteKT
run: mvn -B compile dependency:build-classpath@detekt detekt:check@detekt
2 changes: 1 addition & 1 deletion .github/workflows/diktat_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
- name: Run diktat snapshot via ktlint
run: |
mvn -B diktat:check@diktat --pl diktat-common || echo "LintErrors encountered"
mvn -B diktat:check@diktat --pl diktat-maven-plugin
mvn -B diktat:check@diktat --pl diktat-maven-plugin || echo "LintErrors encountered"
mvn -B diktat:check@diktat --pl diktat-test-framework || echo "LintErrors encountered"
mvn -B diktat:check@diktat --pl diktat-rules