Skip to content

fix(familiar.lic) - updates to check if 920 is known and script syntax modernization #4790

fix(familiar.lic) - updates to check if 920 is known and script syntax modernization

fix(familiar.lic) - updates to check if 920 is known and script syntax modernization #4790

name: Valid Ruby Syntax
on:
push:
branches:
- master
paths:
- 'scripts/**'
- 'type_data/migrations/**'
pull_request:
paths:
- 'scripts/**'
- 'type_data/migrations/**'
jobs:
check_syntax:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.3']
name: Run tests on Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: step-security/changed-files@95b56dadb92a30ca9036f16423fd3c088a71ee94 # v46.0.5
with:
files: |
**/*.lic
**/*.rb
- uses: ruby/setup-ruby@d5126b9b3579e429dd52e51e68624dda2e05be25 # v1.267.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run Ruby syntax check on changed scripts
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
ruby -c $file
done