From 9c35966d27d990c7fcc8b4bf73cfd0e2e590308a Mon Sep 17 00:00:00 2001 From: nhosoya Date: Fri, 19 Jun 2020 13:11:26 +0900 Subject: [PATCH] Setup CI with GitHub Actions --- .github/workflows/rspec.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/rspec.yml diff --git a/.github/workflows/rspec.yml b/.github/workflows/rspec.yml new file mode 100644 index 0000000..5c857eb --- /dev/null +++ b/.github/workflows/rspec.yml @@ -0,0 +1,22 @@ +name: RSpec + +on: pull_request + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ruby: ['2.5', '2.6', '2.7'] + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby ${{ matrix.ruby }} + uses: actions/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + - name: Build and test with Rake on Ruby ${{ matrix.ruby }} + run: | + gem install bundler + bundle install --jobs 4 --retry 3 + bundle exec rake spec