Skip to content

Commit 65c02e5

Browse files
author
Jonathan Wenger
committed
Update pipeline to run EInvoicing tests automatically
1 parent 924a905 commit 65c02e5

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,15 @@ jobs:
3131
-H "Content-Type: application/x-www-form-urlencoded" \
3232
-d "grant_type=client_credentials&client_id=${{secrets.OKTA_CLIENT_ID}}&client_secret=${{secrets.OKTA_CLIENT_SECRET}}")
3333
token=$(echo $response | jq -r '.access_token')
34-
echo "BEARER_TOKEN=${token}" >> $GITHUB_ENV
34+
echo "BEARER_TOKEN_EINVOICING=${token}" >> $GITHUB_ENV
3535
36-
- name: Build with Maven
37-
run: mvn --batch-mode --update-snapshots verify
36+
- name: Clean and Compile with Maven
37+
run: mvn clean compile
38+
39+
- name: Compile the tests
40+
run: mvn test-compile
41+
42+
- name: Test With Maven
43+
run mvn -Dtest=EInvoicingTest test
3844
env:
39-
BEARER_TOKEN: ${{ env.BEARER_TOKEN }}
45+
BEARER_TOKEN_EINVOICING: ${{ env.BEARER_TOKEN_EINVOICING }}

src/test/java/Avalara/SDK/api/EInvoicing/V1/EInvoicingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private Configuration getConfiguration() {
4747
configuration.setMachineName("LocalBox");
4848
configuration.setTimeout(5000);
4949
configuration.setEnvironment(AvaTaxEnvironment.Sandbox);
50-
configuration.setBearerToken(dotenv.get("E_INVOICING_BEARER_TOKEN"));
50+
configuration.setBearerToken(dotenv.get("BEARER_TOKEN_EINVOICING"));
5151
return configuration;
5252
}
5353

0 commit comments

Comments
 (0)