Repository navigation
Add Rubocop, adopt rubyfmt, and move CI to shared config (#64) #213
This file contains hidden or 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: 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 |