Merge pull request #33 from afeld/github-actions #5
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 | |
| jobs: | |
| rspec: | |
| name: RSpec | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 2.0.0 | |
| bundler-cache: true | |
| - name: Configure Git | |
| run: | | |
| git config --global user.email "tester@example.com" | |
| git config --global user.name "Sally Tester" | |
| - name: Run RSpec | |
| run: bundle exec rspec | |
| shellcheck: | |
| name: ShellCheck | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install ShellCheck | |
| run: | | |
| sudo apt-get update -y | |
| sudo apt-get install -y shellcheck | |
| - name: Run ShellCheck | |
| run: "find bin -type f -exec shellcheck {} +" |