[script][pick] Added defence against a timing issue where partial/additional traps are not recognised. #2077
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
strategy: | |
matrix: | |
ruby: ['3.3'] | |
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@v45 | |
with: | |
files: | | |
*.lic | |
*.rb | |
- uses: ruby/setup-ruby@v1 | |
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 |