Skip to content

Commit

Permalink
add credentials private key
Browse files Browse the repository at this point in the history
  • Loading branch information
tonisives committed Nov 8, 2023
1 parent 1fd4228 commit 1bc5ca6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,18 @@ jobs:
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.GH_SSH_PRIVATE }}"
- name: create credentials.yaml file for the tests to read the keys
- name: create credentials.json file for the tests to read the keys
run: |
mkdir -p ~/.config/high-mobility/fleet-sdk/
# ' will not escape "" inside the yaml file
echo '${{ secrets.CREDENTIALS_JSON }}' > ~/.config/high-mobility/fleet-sdk/credentials.json
- name: create credentialsPrivateKey.json file for the tests to read the keys
run: |
mkdir -p ~/.config/high-mobility/fleet-sdk/
# ' will not escape "" inside the yaml file
echo '${{ secrets.CREDENTIALS_JSON_PRIVATE_KEY }}' > ~/.config/high-mobility/fleet-sdk/credentialsPrivateKey.json
- name: Update submodules
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ open class BaseTest : KoinTest {
val homeDir = System.getProperty("user.home")

val credentialsFilePath =
Paths.get("$homeDir/.config/high-mobility/fleet-sdk/credentials.json")
Paths.get("$homeDir/.config/high-mobility/fleet-sdk/credentialsPrivateKey.json")
val credentialsDirectory = credentialsFilePath.parent

if (Files.exists(credentialsDirectory) == false) {
Expand Down

0 comments on commit 1bc5ca6

Please sign in to comment.