Skip to content

Commit 5105a57

Browse files
committed
added git token for unit tests
1 parent 5b55f32 commit 5105a57

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/unit_tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@v4
4343

44+
- uses: actions/create-github-app-token@v2
45+
id: app-token
46+
with:
47+
app-id: ${{ secrets.GH_ACTIONS_APP_ID }}
48+
private-key: ${{ secrets.GH_ACTIONS_APP_PRIVATE_KEY }}
49+
owner: ${{ github.repository_owner }}
50+
repositories: "aptos-aave-gho"
51+
52+
- name: Auth for private HTTPS git deps
53+
run: |
54+
git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/"
55+
4456
- name: Install Aptos CLI
4557
uses: ./.github/actions/install-aptos-cli
4658
with:

aave-core/tests/gho-direct-minter/gho_direct_minter_tests.move

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ module aave_pool::gho_direct_minter_tests {
236236
gho_reserve::add_entity(gho_admin, gho_reserve_entity);
237237
gho_reserve::set_limit(gho_admin, gho_reserve_entity, entity_limit);
238238

239-
// Check the enitty level
239+
// Check the entity level
240240
let limit = gho_reserve::get_limit(gho_reserve_entity);
241241
assert!(limit == entity_limit, TEST_SUCCESS);
242242

@@ -320,7 +320,7 @@ module aave_pool::gho_direct_minter_tests {
320320
gho_reserve::add_entity(gho_admin, gho_reserve_entity);
321321
gho_reserve::set_limit(gho_admin, gho_reserve_entity, entity_limit);
322322

323-
// Check the enitty level
323+
// Check the entity level
324324
let limit = gho_reserve::get_limit(gho_reserve_entity);
325325
assert!(limit == entity_limit, TEST_SUCCESS);
326326

@@ -403,7 +403,7 @@ module aave_pool::gho_direct_minter_tests {
403403
gho_reserve::add_entity(gho_admin, gho_reserve_entity);
404404
gho_reserve::set_limit(gho_admin, gho_reserve_entity, entity_limit);
405405

406-
// Check the enitty level
406+
// Check the entity level
407407
let limit = gho_reserve::get_limit(gho_reserve_entity);
408408
assert!(limit == entity_limit, TEST_SUCCESS);
409409

@@ -545,7 +545,7 @@ module aave_pool::gho_direct_minter_tests {
545545
gho_reserve::add_entity(gho_admin, gho_reserve_entity);
546546
gho_reserve::set_limit(gho_admin, gho_reserve_entity, entity_limit);
547547

548-
// Check the enitty level
548+
// Check the entity level
549549
let limit = gho_reserve::get_limit(gho_reserve_entity);
550550
assert!(limit == entity_limit, TEST_SUCCESS);
551551

0 commit comments

Comments
 (0)