Skip to content

alexcasalboni is running integration tests #184

alexcasalboni is running integration tests

alexcasalboni is running integration tests #184

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 }}