Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/build-snapshot-jar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
steps:

- uses: actions/checkout@v3
- name: Set up JDK 18
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '18'
java-version: '11'
distribution: 'temurin'
# cache: maven
- name: Build with Maven
Expand Down
42 changes: 24 additions & 18 deletions .github/workflows/test-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,33 @@ on:
pull_request:
workflow_dispatch:

env:
MAVEN_ARGS: -V -B --no-transfer-progress -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120

jobs:
build:
strategy:
fail-fast: false
matrix:
java: [ 11, 17, 21 ]
name: 'Linux JDK ${{ matrix.java }}'
runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v3
- name: Set up JDK 18
uses: actions/setup-java@v3
with:
java-version: '18'
distribution: 'temurin'
- name: Build and test with Maven
env:
POSTMAN_API_KEY: ${{ secrets.POSTMAN_API_KEY }}
run: |
mkdir ./test-output
mvn test


- name: 'Checkout'
uses: actions/checkout@v3
- name: 'Set up JDK ${{ matrix.java }}'
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build and test with Maven
env:
POSTMAN_API_KEY: ${{ secrets.POSTMAN_API_KEY }}
run: |
mkdir ./test-output
mvn ${MAVEN_ARGS} test

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target/
.idea
17 changes: 4 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>18</maven.compiler.source>
<maven.compiler.target>18</maven.compiler.target>
</properties>

<dependencies>
Expand Down Expand Up @@ -131,21 +129,14 @@
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.1</version>
</plugin>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
</plugin>
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>18</source>
<target>18</target>
</configuration>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/com/postman/collection/RequestAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ public String getKey() {
public enumAuthType getAuthType() {

switch (type) {
case "apikey", "bearer": {
case "apikey": {
return enumAuthType.APIKEY;
}
case "bearer": {
return enumAuthType.APIKEY;
}
case "digest": {
Expand Down