Skip to content

Commit acdec08

Browse files
Merge pull request #3 from avadev/25.6.0
25.6.0
2 parents 2296847 + 894221c commit acdec08

File tree

297 files changed

+152758
-18781
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

297 files changed

+152758
-18781
lines changed

.github/workflows/packagist-publish.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313

1414
- name: Update Composer.json
1515
run: composer update
@@ -19,7 +19,7 @@ jobs:
1919

2020
- name: Cache Composer packages
2121
id: composer-cache
22-
uses: actions/cache@v2
22+
uses: actions/cache@v3
2323
with:
2424
path: vendor
2525
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
@@ -29,23 +29,34 @@ jobs:
2929
- name: Install dependencies
3030
run: composer install --prefer-dist --no-progress
3131

32-
- name: Retrieve bearer token
33-
id: get_bearer_token
32+
- name: Retrieve bearer token for EInvoicing
33+
id: get_bearer_token_einvoicing
3434
run: |
3535
response=$(curl -X POST ${{secrets.OKTA_ACCESS_TOKEN_URL}}/connect/token \
3636
-H "Content-Type: application/x-www-form-urlencoded" \
3737
-d "grant_type=client_credentials&client_id=${{secrets.OKTA_CLIENT_ID}}&client_secret=${{secrets.OKTA_CLIENT_SECRET}}")
3838
token=$(echo $response | jq -r '.access_token')
39-
echo "BEARER_TOKEN=${token}" >> $GITHUB_ENV
39+
echo "BEARER_TOKEN_EINVOICING=${token}" >> $GITHUB_ENV
40+
41+
- name: Retrieve bearer token for A1099
42+
id: get_bearer_token_a1099
43+
run: |
44+
response=$(curl -X POST ${{secrets.AI_SBX_URL}}/connect/token \
45+
-H "Content-Type: application/x-www-form-urlencoded" \
46+
-d "grant_type=client_credentials&client_id=${{secrets.AI_CLIENT_ID_A1099}}&client_secret=${{secrets.AI_CLIENT_SECRET_A1099}}")
47+
token=$(echo $response | jq -r '.access_token')
48+
echo "BEARER_TOKEN_A1099=${token}" >> $GITHUB_ENV
4049
4150
- name: Create .env file
4251
run: |
43-
echo "BEARER_TOKEN=${{ env.BEARER_TOKEN }}" > .env
52+
echo "BEARER_TOKEN_EINVOICING=${{ env.BEARER_TOKEN_EINVOICING }}" > .env
53+
echo "BEARER_TOKEN_A1099=${{ env.BEARER_TOKEN_A1099 }}" >> .env
4454
4555
- name: Run test suite
4656
run: composer run-script test
4757
env:
48-
BEARER_TOKEN: ${{ env.BEARER_TOKEN }}
58+
BEARER_TOKEN_EINVOICING: ${{ env.BEARER_TOKEN_EINVOICING }}
59+
BEARER_TOKEN_A1099: ${{ env.BEARER_TOKEN_A1099 }}
4960

5061
- name: Publish Package
5162
run: curl -XPOST -H'content-type:application/json' 'https://packagist.org/api/update-package?username=${{ secrets.PACKAGIST_USERNAME }}&apiToken=${{ secrets.PACKAGIST_API_TOKEN }}' -d'{"repository":{"url":"https://github.com/avadev/Avalara-SDK-PHP"}}'

.github/workflows/test.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515

1616
- name: Update Composer.json
1717
run: composer update
@@ -21,30 +21,41 @@ jobs:
2121

2222
- name: Cache Composer packages
2323
id: composer-cache
24-
uses: actions/cache@v2
24+
uses: actions/cache@v3
2525
with:
2626
path: vendor
2727
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
2828
restore-keys: |
2929
${{ runner.os }}-php-
3030
31-
- name: Retrieve bearer token
32-
id: get_bearer_token
31+
- name: Retrieve bearer token for EInvoicing
32+
id: get_bearer_token_einvoicing
3333
run: |
3434
response=$(curl -X POST ${{secrets.OKTA_ACCESS_TOKEN_URL}}/connect/token \
3535
-H "Content-Type: application/x-www-form-urlencoded" \
3636
-d "grant_type=client_credentials&client_id=${{secrets.OKTA_CLIENT_ID}}&client_secret=${{secrets.OKTA_CLIENT_SECRET}}")
3737
token=$(echo $response | jq -r '.access_token')
38-
echo "BEARER_TOKEN=${token}" >> $GITHUB_ENV
38+
echo "BEARER_TOKEN_EINVOICING=${token}" >> $GITHUB_ENV
39+
40+
- name: Retrieve bearer token for A1099
41+
id: get_bearer_token_a1099
42+
run: |
43+
response=$(curl -X POST ${{secrets.AI_SBX_URL}}/connect/token \
44+
-H "Content-Type: application/x-www-form-urlencoded" \
45+
-d "grant_type=client_credentials&client_id=${{secrets.AI_CLIENT_ID_A1099}}&client_secret=${{secrets.AI_CLIENT_SECRET_A1099}}")
46+
token=$(echo $response | jq -r '.access_token')
47+
echo "BEARER_TOKEN_A1099=${token}" >> $GITHUB_ENV
3948
4049
- name: Create .env file
4150
run: |
42-
echo "BEARER_TOKEN=${{ env.BEARER_TOKEN }}" > .env
51+
echo "BEARER_TOKEN_EINVOICING=${{ env.BEARER_TOKEN_EINVOICING }}" > .env
52+
echo "BEARER_TOKEN_A1099=${{ env.BEARER_TOKEN_A1099 }}" >> .env
4353
4454
- name: Install dependencies
4555
run: composer install --prefer-dist --no-progress
4656

4757
- name: Run test suite
4858
run: composer run-script test
4959
env:
50-
BEARER_TOKEN: ${{ env.BEARER_TOKEN }}
60+
BEARER_TOKEN_EINVOICING: ${{ env.BEARER_TOKEN_EINVOICING }}
61+
BEARER_TOKEN_A1099: ${{ env.BEARER_TOKEN_A1099 }}

0 commit comments

Comments
 (0)