Skip to content

Add Rails: Ruby on Rails in API mode on Puma (~58k ⭐) #202

Add Rails: Ruby on Rails in API mode on Puma (~58k ⭐)

Add Rails: Ruby on Rails in API mode on Puma (~58k ⭐) #202

Workflow file for this run

name: Validate Framework
on:
pull_request:
paths:
- 'frameworks/**'
- 'scripts/validate.sh'
jobs:
detect:
runs-on: ubuntu-latest
outputs:
frameworks: ${{ steps.find.outputs.frameworks }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: find
run: |
frameworks=$(git diff --name-only origin/${{ github.base_ref }}...HEAD \
| grep '^frameworks/' \
| cut -d'/' -f2 \
| sort -u \
| jq -R -s -c 'split("\n") | map(select(length > 0))')
echo "frameworks=$frameworks" >> "$GITHUB_OUTPUT"
validate:
needs: detect
if: needs.detect.outputs.frameworks != '[]'
runs-on: self-hosted
timeout-minutes: 30
strategy:
matrix:
framework: ${{ fromJson(needs.detect.outputs.frameworks) }}
steps:
- uses: actions/checkout@v4
- name: Validate ${{ matrix.framework }}
run: ./scripts/validate.sh "${{ matrix.framework }}"