Skip to content

Commit

Permalink
Add Windows and macOS to test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ruimarinho committed Aug 2, 2020
1 parent cd18055 commit d449dde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ on:
- '*'

jobs:
build:
name: Test
runs-on: ubuntu-latest
test:
name: Run Tests
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand All @@ -22,6 +25,7 @@ jobs:
- run: yarn
- run: yarn test
publish:
name: Publish Release
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion credentials-manager.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('assumeRoleWithSAML', () => {
RoleArn: 'arn:aws:iam::123456789:role/Foobar',
SAMLAssertion: 'foobar'
}]);
expect(savedCredentials).toBe(`[${awsProfile}]\naws_access_key_id=${accessKeyId}\naws_role_arn=${role.roleArn}\naws_secret_access_key=${secretAccessKey}\naws_session_expiration=${sessionExpiration.toISOString()}\naws_session_token=${sessionToken}\n`);
expect(savedCredentials).toBe(`[${awsProfile}]${os.EOL}aws_access_key_id=${accessKeyId}${os.EOL}aws_role_arn=${role.roleArn}${os.EOL}aws_secret_access_key=${secretAccessKey}${os.EOL}aws_session_expiration=${sessionExpiration.toISOString()}${os.EOL}aws_session_token=${sessionToken}${os.EOL}`);
});

it('parses IAM role max session duration if custom session duration is defined', async () => {
Expand Down

0 comments on commit d449dde

Please sign in to comment.