From e74945bcae0e032ad372bc66a2b3132423a7e8cc Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Fri, 15 May 2020 13:24:49 +0200 Subject: [PATCH] Update README example workflows * Show how to continue-on-error for head builds. * Use the typical `bundle install` + `bundle exec rake` commands. --- README.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5eaef49..53cf3f3 100644 --- a/README.md +++ b/README.md @@ -64,13 +64,14 @@ jobs: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: - ruby-version: 2.6 - - run: ruby -v + ruby-version: 2.6 # Not needed with a .ruby-version file + - run: bundle install + - run: bundle exec rake ``` ### Matrix -This matrix tests all stable releases of MRI, JRuby and TruffleRuby on Ubuntu and macOS. +This matrix tests all stable releases and `head` versions of MRI, JRuby and TruffleRuby on Ubuntu and macOS. ```yaml name: My workflow @@ -80,17 +81,22 @@ jobs: strategy: fail-fast: false matrix: - os: [ ubuntu-latest, macos-latest ] - ruby: [ 2.5, 2.6, 2.7, jruby, truffleruby ] - runs-on: ${{ matrix.os }} + os: [ubuntu, macos] + ruby: [2.5, 2.6, 2.7, head, debug, jruby, jruby-head, truffleruby, truffleruby-head] + runs-on: ${{ matrix.os }}-latest + continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }} steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} - - run: ruby -v + - run: bundle install + - run: bundle exec rake ``` +See the [GitHub Actions documentation](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions) +for more details about the workflow syntax. + ### Supported Version Syntax * engine-version like `ruby-2.6.5` and `truffleruby-19.3.0`