Skip to content

fix+refactor(astrology): observe pattern fix + comprehensive review #2719

fix+refactor(astrology): observe pattern fix + comprehensive review

fix+refactor(astrology): observe pattern fix + comprehensive review #2719

name: Valid Ruby syntax
on:
push:
branches:
- 'main'
paths:
- "*.lic"
- "*.rb"
pull_request:
paths:
- "*.lic"
- "*.rb"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check_syntax:
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: 'gtk:vscode:profanity'
strategy:
matrix:
ruby: ['4.0']
name: Run tests on Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: step-security/changed-files@60967b822d3001fa82242f8d6b4ed46bc3600a68 # v47.0.1
with:
files: |
*.lic
*.rb
- uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.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