Skip to content

fix: test executable #8

fix: test executable

fix: test executable #8

Workflow file for this run

name: Dynamic Test Execution
on: [push]
jobs:
prepare-execution-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.MATRIX }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Prepare Execution Matrix
id: set-matrix
run: |
EXEC_FILES=$(find tests -type f -executable | jq -R -s -c 'split("\n")[:-1]')
echo "MATRIX=${EXEC_FILES}" >> "$GITHUB_OUTPUT"
execute-scripts:
needs: prepare-execution-matrix
runs-on: ubuntu-latest
strategy:
matrix: ${{ fromJson(needs.prepare-execution-matrix.outputs.matrix) }}
services:
localstack:
image: localstack/localstack
ports:
- 4566:4566
env:
SERVICES: "s3,ec2,cloudformation"
DEFAULT_REGION: "us-east-1"
AWS_ACCESS_KEY_ID: "test"
AWS_SECRET_ACCESS_KEY: "test"
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Execute Script
run: ./tests/${{ matrix.script }}