diff --git a/.github/workflows/sam-application.yml b/.github/workflows/sam-application.yml index 4388533..e70caae 100644 --- a/.github/workflows/sam-application.yml +++ b/.github/workflows/sam-application.yml @@ -2,38 +2,22 @@ on: push: branches: - main - jobs: build-deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - uses: aws-actions/setup-sam@v1 - - uses: aws-actions/configure-aws-credentials@v1 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-west-1 + # sam build + - run: sam build --use-container - # Build the SAM application - - name: SAM Build - run: sam build --use-container - - # Remove any existing SAM config to prevent conflicts - - name: Remove SAM Config - run: rm -f samconfig.toml +# Run Unit tests- Specify unit tests here - # Deploy the SAM application without guided configuration - - name: SAM Deploy - run: | - sam deploy \ - --no-confirm-changeset \ - --no-fail-on-empty-changeset \ - --stack-name sam-hello-world \ - --s3-bucket aws-sam-example-bucket \ - --capabilities CAPABILITY_IAM \ - --region us-west-1 +# sam deploy + - run: sam deploy --no-confirm-changeset --no-fail-on-empty-changeset --stack-name sam-hello-world --s3-bucket aws-sam-example-bucket --capabilities CAPABILITY_IAM --region us-west-1 \ No newline at end of file