Skip to content

Commit

Permalink
Optimize gha (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
MauroLuzzatto authored Feb 6, 2024
1 parent 3446d76 commit dbd0061
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
AWS_REGION: eu-west-1
STACK_NAME: musicflow-sam-app
S3_BUCKET: portfolio-on-lambda-2999-v3
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
steps:
- uses: actions/checkout@v3
- uses: aws-actions/setup-sam@v2
Expand All @@ -25,12 +23,12 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{env.AWS_REGION}}

# - name: Create env file
# run: |
# touch .env
# echo CLIENT_ID=${{ secrets.CLIENT_ID }} >> .env
# echo CLIENT_SECRET=${{ secrets.CLIENT_SECRET }} >> .env
# cat .env
- name: Create env file
run: |
touch .env
echo CLIENT_ID=${{ secrets.CLIENT_ID }} >> .env
echo CLIENT_SECRET=${{ secrets.CLIENT_SECRET }} >> .env
cat .env
# Build inside Docker containers
- run: sam build --use-container -t template.yaml
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-api.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Tests
on: [push]

jobs:
run-api-tests:
runs-on: ubuntu-latest
Expand Down

0 comments on commit dbd0061

Please sign in to comment.