Skip to content

feat: add github action for running tests #1

feat: add github action for running tests

feat: add github action for running tests #1

Workflow file for this run

# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
name: run-tests
on:
pull_request:
branches:
- main
jobs:
run-tests:
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
if: github.event.review.state == 'APPROVED'
steps:
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.IAM_ROLE_GITHUB }}
aws-region: ${{ secrets.AWS_REGION }}
- name: checkout source
uses: actions/checkout@v4
- name: run tests
env:
STEP_FUNCTION_ARN: ${{ secrets.STEP_FUNCTION_ARN }}
LOG_GROUP_NAME: ${{ secrets.LOG_GROUP_NAME }}
run: bash -e scripts/github-actions-run-tests-script.sh