Skip to content

[script] [combat-trainer] Added necro_corpse_priority: setting #1526

[script] [combat-trainer] Added necro_corpse_priority: setting

[script] [combat-trainer] Added necro_corpse_priority: setting #1526

name: Valid Ruby syntax
on:
push:
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
strategy:
matrix:
ruby: ['3.2']
name: Run tests on Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41
with:
files: |
*.lic
*.rb
- 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