forked from elanthia-online/dr-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.14 KB
/
ruby_syntax_checker.yml
File metadata and controls
47 lines (44 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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