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

Fix #16: Qodana #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: 'gradle'
directory: '/'
schedule:
interval: 'daily'
assignees:
- madhead
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
assignees:
- madhead
43 changes: 41 additions & 2 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Check Gradle version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v2

- uses: madhead/check-gradle-version@v1
continue-on-error: true
Expand All @@ -19,7 +19,7 @@ jobs:
name: Check copyright date
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v2

- run: |
copyright_year=$(sed -n 's/Copyright Ⓒ \([[:digit:]]\{4\}\) madhead <[email protected]>/\1/p' LICENSE)
Expand All @@ -29,6 +29,45 @@ jobs:
[[ $copyright_year == $current_year ]]
continue-on-error: true

qodana-license-audit:
name: Qodana license audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: JetBrains/[email protected]

- uses: actions/upload-artifact@v2
if: always()
with:
retention-days: 1
name: qodana-license-audit
path: ${{ github.workspace }}/qodana
continue-on-error: true

qodana-scan:
name: Qodana scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: JetBrains/[email protected]
with:
upload-result: false
baseline-path: qodana.sarif.json

- uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json

- uses: actions/upload-artifact@v2
if: always()
with:
retention-days: 1
name: qodana-scan
path: ${{ runner.temp }}/qodana/results
continue-on-error: true

unit-test:
name: Unit test
runs-on: ubuntu-latest
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/qodana-baseline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Qodana baseline

on:
push:
branches:
- master

jobs:
qodana-baseline:
name: Qodana baseline
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: JetBrains/[email protected]
with:
upload-result: false
baseline-path: qodana.sarif.json
- run: |
cp ${{ runner.temp }}/qodana/results/qodana.sarif.json qodana.sarif.json
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update Qodana baseline
file_pattern: qodana.sarif.json
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ configure(
tasks {
register<Javadoc>("javadocs") {
group = "Documentation"
destinationDir = file("$buildDir/docs/javadoc")
title = project.name
setDestinationDir(file("$buildDir/docs/javadoc"))
with(options as StandardJavadocDocletOptions) {
links = listOf(
"https://docs.oracle.com/javase/8/docs/api/",
Expand Down
14 changes: 14 additions & 0 deletions docs/maven.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -88,71 +88,85 @@ Specify the dependencies you need as usual:
<groupId>me.madhead.aws-junit5</groupId>
<artifactId>dynamo-v1</artifactId>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>me.madhead.aws-junit5</groupId>
<artifactId>dynamo-v2</artifactId>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>me.madhead.aws-junit5</groupId>
<artifactId>s3-v1</artifactId>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>me.madhead.aws-junit5</groupId>
<artifactId>s3-v2</artifactId>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>me.madhead.aws-junit5</groupId>
<artifactId>kinesis-v1</artifactId>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>me.madhead.aws-junit5</groupId>
<artifactId>kinesis-v2</artifactId>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>me.madhead.aws-junit5</groupId>
<artifactId>sns-v1</artifactId>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>me.madhead.aws-junit5</groupId>
<artifactId>sns-v2</artifactId>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>me.madhead.aws-junit5</groupId>
<artifactId>sqs-v1</artifactId>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>me.madhead.aws-junit5</groupId>
<artifactId>sqs-v2</artifactId>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>me.madhead.aws-junit5</groupId>
<artifactId>ses-v1</artifactId>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>me.madhead.aws-junit5</groupId>
<artifactId>ses-v2</artifactId>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>me.madhead.aws-junit5</groupId>
<artifactId>lambda-v1</artifactId>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>me.madhead.aws-junit5</groupId>
<artifactId>lambda-v2</artifactId>
<version>{revnumber}</version>
<scope>test</scope>
</dependency>
</dependencies>
----
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
group=me.madhead.aws-junit5
version=7.1.1
version=7.1.2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@ExtendWith(Lambda.class)
class AWSLambdaAsyncInjectionTest {
@AWSClient(
endpoint = AWSLambdaInjectionTest.Endpoint.class
endpoint = Endpoint.class
)
private AWSLambdaAsync client;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@ExtendWith(Lambda.class)
class LambdaAsyncClientInjectionTest {
@AWSClient(
endpoint = LambdaClientInjectionTest.Endpoint.class
endpoint = Endpoint.class
)
private LambdaAsyncClient client;

Expand Down
Loading