Skip to content

Commit

Permalink
use aws credentials from secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
j0k3r committed Oct 22, 2024
1 parent f8b3920 commit 7d40341
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,10 @@ jobs:
- name: 'Install Serverless v4'
run: npm install serverless@4

- name: 'Setup AWS credentials'
run: |
mkdir -p ~/.aws
echo "[default]" > ~/.aws/credentials
echo "aws_access_key_id = xx" >> ~/.aws/credentials
echo "aws_secret_access_key = xx" >> ~/.aws/credentials
echo "region = us-east-1" >> ~/.aws/credentials
- name: 'Run tests'
run: npm run test tests/e2e/e2e.test.js
env:
AWS_DEFAULT_REGION: eu-west-1
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
SERVERLESS_ACCESS_KEY: ${{secrets.SERVERLESS_ACCESS_KEY}}

0 comments on commit 7d40341

Please sign in to comment.