Merge pull request #429 from jbgosselin/replace-getpass-ui-input #83
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test nix package on Ubuntu" | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Building package | |
run: nix build . | |
- name: Write a gimme-aws-creds config file for testing | |
run: | | |
cat > ~/.okta_aws_login_config <<EOF | |
[default] | |
okta_org_url = https://foobar.okta.com | |
okta_auth_server = | |
client_id = | |
gimme_creds_server = appurl | |
aws_appname = | |
aws_rolename = | |
write_aws_creds = False | |
cred_profile = role | |
okta_username = [email protected] | |
app_url = https://foobar.okta.com/home/amazon_aws/00000000000000000000/111 | |
resolve_aws_alias = False | |
preferred_mfa_type = | |
aws_default_duration = 36000 | |
device_token = | |
output_format = json | |
EOF | |
- name: Check gimme-aws-creds version | |
run: ./result/bin/gimme-aws-creds --version |