alexcasalboni is running integration tests #189
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: aws-lambda-power-tuning-integration-tests | |
run-name: ${{ github.actor }} is running integration tests | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
jobs: | |
build: | |
permissions: | |
id-token: write | |
contents: read | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: aws-actions/configure-aws-credentials@master | |
with: | |
audience: sts.amazonaws.com | |
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | |
aws-region: ${{ secrets.AWS_REGION }} | |
- run: npm ci | |
- uses: aws-actions/setup-sam@v2 | |
with: | |
use-installer: true | |
- run: sam build --use-container | |
- run: sam deploy --no-confirm-changeset --no-fail-on-empty-changeset --stack-name aws-lambda-power-tuning-gh-${GITHUB_REF_NAME/\//-} --s3-bucket ${{ secrets.AWS_S3_BUCKET }} --capabilities CAPABILITY_IAM --region ${{ secrets.AWS_REGION }} |