Skip to content

Commit

Permalink
feature(git-actions): new action to test hydra on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
fruch committed Dec 24, 2024
1 parent ff999a0 commit 94fafb3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test-hydra-macos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
pull_request:
branches:
- master
jobs:
test:
runs-on: macos-13
env:
AWS_ACCESS_KEY_ID: ${{ secrets.QA_USER_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.QA_USER_AWS_SECRET_ACCESS_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Docker
uses: douglascamata/setup-docker-macos-action@v1-alpha
- run: |
#!/usr/bin/env bash -x
AWS_OPTIONS=$(env | sed -n 's/^\(AWS_[^=]\+\)=.*/--env \1/p')
echo $AWS_OPTIONS
- name: Run Hydra
run: bash -x ./docker/env/hydra.sh list-images
1 change: 1 addition & 0 deletions sdcm/utils/aws_okta.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def can_get_to_aws_account():
assert response['Account'] == account_id
LOGGER.info("logged in as %s", response['Arn'])
except (NoCredentialsError, AssertionError):
LOGGER.exception("failed")
return False
return True

Expand Down

0 comments on commit 94fafb3

Please sign in to comment.