diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d7e159b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: Ruby CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2.2' + + - name: Install dependencies + run: | + gem install bundler + bundle install --jobs 4 --retry 3 + + - name: Run RuboCop + run: bundle exec rubocop + + - name: Run RSpec + run: bundle exec rspec