From 3854ad3f6e23946a7a6479169dee4414b994f7e8 Mon Sep 17 00:00:00 2001 From: Lawrence Forooghian <53756884+lawrence-forooghian@users.noreply.github.com> Date: Thu, 26 Mar 2020 07:55:29 +0000 Subject: [PATCH] Set up GitHub actions for testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is GitHub’s default template, plus an extra step to respect `.ruby-version`, which is taken from https://github.com/actions/setup-ruby/issues/31#issuecomment-561144368. --- .github/workflows/ruby.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ruby.yml diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 0000000..ff087a1 --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,24 @@ +name: Ruby + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: echo "::set-output name=RUBY_VERSION::$(cat .ruby-version)" + id: rbenv + - name: Set up Ruby + uses: actions/setup-ruby@v1 + with: + ruby-version: "${{ steps.rbenv.outputs.RUBY_VERSION }}" + - name: Build and test with Rake + run: | + gem install bundler + bundle install --jobs 4 --retry 3 + bundle exec rake