Skip to content

Add Rubocop, adopt rubyfmt, and move CI to shared config (#64) #213

Add Rubocop, adopt rubyfmt, and move CI to shared config (#64)

Add Rubocop, adopt rubyfmt, and move CI to shared config (#64) #213

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
call-workflow-from-shared-config:
uses: rubyatscale/shared-config/.github/workflows/ci.yml@main
secrets: inherit
rubyfmt:
name: "Rubyfmt"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install rubyfmt
run: |
curl -sL "https://github.com/fables-tales/rubyfmt/releases/download/v0.14.1/rubyfmt-v0.14.1-Linux-x86_64.tar.gz" | tar xz
sudo install -m 755 tmp/releases/v0.14.1-Linux/rubyfmt /usr/local/bin/rubyfmt
- name: Check formatting
run: rubyfmt --check lib/ spec/ Rakefile pack_stats.gemspec Gemfile