Skip to content

chore: Namespace & File Path Updates #1186

chore: Namespace & File Path Updates

chore: Namespace & File Path Updates #1186

Workflow file for this run

name: Ruby Syntax
on:
push:
branches:
- master
- staging
paths:
- "**/*.lic"
- "**/*.rb"
- "lich.rbw"
pull_request:
paths:
- "**/*.lic"
- "**/*.rb"
- "lich.rbw"
jobs:
check_syntax:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.4']
name: Run tests on Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: |
**/*.lic
**/*.rb
lich.rbw
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install ruby gem dependencies with bundler
run: |
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run Ruby syntax check on changed scripts
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
ruby -c $file
done