Skip to content

Commit

Permalink
ci: freak out
Browse files Browse the repository at this point in the history
  • Loading branch information
acrois committed Jan 26, 2024
1 parent 025d2cf commit 0e29138
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
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

uses: actions/checkout@v4
- 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"
echo 'MATRIX<<EOF' >> $GITHUB_OUTPUT
echo $EXEC_FILES >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
outputs:
matrix: ${{ steps.set-matrix.outputs.MATRIX }}
execute-scripts:
needs: prepare-execution-matrix
runs-on: ubuntu-latest
strategy:
matrix: ${{ fromJson(needs.prepare-execution-matrix.outputs.matrix) }}

matrix:
include: ${{ fromJson(needs.prepare-execution-matrix.outputs.matrix) }}
services:
localstack:
image: localstack/localstack
Expand All @@ -34,10 +31,8 @@ jobs:
DEFAULT_REGION: "us-east-1"
AWS_ACCESS_KEY_ID: "test"
AWS_SECRET_ACCESS_KEY: "test"

steps:
- name: Checkout Repository
uses: actions/checkout@v2

uses: actions/checkout@v4
- name: Execute Script
run: ./tests/${{ matrix.script }}

0 comments on commit 0e29138

Please sign in to comment.