Skip to content

Commit

Permalink
update codecov action in workflow (#194)
Browse files Browse the repository at this point in the history
* update codecov action in workflow
* update test dependency versions
  • Loading branch information
max402 authored May 17, 2024
1 parent 435200e commit 298057c
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 13 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ jobs:

- name: Step 4 - Build client
run: ./scripts/build_client.sh

- name: Step 5 - Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
12 changes: 9 additions & 3 deletions .github/workflows/push-in-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,21 @@ jobs:
- name: Step 3 - Build & Test
run: mvn clean verify -ntp

- name: Step 5 - Build client
- name: Step 4 - Build client
run: ./scripts/build_client.sh

- name: Maven deploy snapshot
- name: Step 5 - Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

- name: Step 6 - Maven deploy snapshot
run: ./scripts/mvn_deploy.sh
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_EXECUTABLE: gpg
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }}
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# secure-token-service [![Build Status](https://travis-ci.com/adorsys/secure-token-service.svg?branch=master)](https://travis-ci.com/adorsys/secure-token-service)
[![codecov](https://codecov.io/gh/adorsys/secure-token-service/branch/develop/graph/badge.svg)](https://codecov.io/gh/adorsys/secure-token-service)

# secure-token-service

This an implementation of the secure token service as specified in the token exchange working draft https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-08.

Expand Down
9 changes: 5 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@
<jackson.version>2.15.1</jackson.version>
<jackson-databind.version>2.15.1</jackson-databind.version>
<keycloak.version>22.0.4</keycloak.version>
<surefire.version>3.0.0-M4</surefire.version>
<jacoco.version>0.8.8</jacoco.version>
<surefire.version>3.2.5</surefire.version>
<failsafe.version>3.2.5</failsafe.version>
<jacoco.version>0.8.12</jacoco.version>
<testcontainers.version>1.19.7</testcontainers.version>
<flyway.version>10.10.0</flyway.version>
<postgres.version>42.7.3</postgres.version>
<h2.version>2.2.224</h2.version>
<mockito.version>5.11.0</mockito.version>
<catch-exception.version>1.4.6</catch-exception.version>
<mockito.version>5.12.0</mockito.version>
<catch-exception.version>2.0</catch-exception.version>
<nimbus-jose-jwt.version>9.37.3</nimbus-jose-jwt.version>
<scmBranch/>
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
Expand Down
3 changes: 1 addition & 2 deletions sts-secret-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<!--https://stackoverflow.com/questions/49363222/maven-failsafe-plugin-surefirebooterforkexception-there-was-an-error-in-the-f-->
<version>2.22.0</version>
<version>${failsafe.version}</version>
<configuration>
<argLine>--add-opens java.base/java.lang=ALL-UNNAMED</argLine>
<includes>
<include>**/*IT.java</include>
</includes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void shouldNotGetSecretForInvalidAccessToken() throws Exception {
"20qD2QfgDoA0CpOZCQzMe9WoIfo8L-g4099--XouFyMWRU8VyVsx_73ekNKPUmWvuNIxeF3PBk9KGs7ABUnv_6n8A-KqzYTyA4y0gU" +
"8E9mgIuWpDmQ2FROf1Gd-2it9k3tvr83k7N1dMvg";

catchException(client).exchangeToken("/secret-server/token-exchange", MOPED_CLIENT_AUDIENCE, invalidAccessToken);
catchException(() -> client.exchangeToken("/secret-server/token-exchange", MOPED_CLIENT_AUDIENCE, invalidAccessToken));

Exception caughtException = caughtException();

Expand All @@ -153,7 +153,7 @@ void shouldNotGetSecretForInvalidAccessToken() throws Exception {
void shouldNotGetSecretForFakeAccessToken() throws Exception {
final String fakeAccessToken = "my fake access token";

catchException(client).exchangeToken("/secret-server/token-exchange", MOPED_CLIENT_AUDIENCE, fakeAccessToken);
catchException(() -> client.exchangeToken("/secret-server/token-exchange", MOPED_CLIENT_AUDIENCE, fakeAccessToken));

Exception caughtException = caughtException();

Expand Down

This file was deleted.

0 comments on commit 298057c

Please sign in to comment.