From c43862a187ed9a4bfe0ded40bf1b69e41c5a5d41 Mon Sep 17 00:00:00 2001 From: Patrik Ragnarsson Date: Fri, 17 Apr 2020 02:59:15 +0200 Subject: [PATCH] The new way of allowing failures on GitHub Actions (#2226) See https://github.blog/changelog/2020-04-15-github-actions-new-workflow-features/ --- .github/workflows/puma.yml | 49 +++++++------------------------------- 1 file changed, 8 insertions(+), 41 deletions(-) diff --git a/.github/workflows/puma.yml b/.github/workflows/puma.yml index ce3b42c050..addde2b67c 100644 --- a/.github/workflows/puma.yml +++ b/.github/workflows/puma.yml @@ -21,6 +21,7 @@ jobs: ruby: [ 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, head, jruby, truffleruby-head ] include: - { os: windows , ruby: mingw } + - { os: ubuntu , ruby: jruby-head, allow-failure: true } exclude: - { os: windows , ruby: head } - { os: windows , ruby: jruby } @@ -56,47 +57,13 @@ jobs: run: bundle exec rake rubocop - name: test + id: test timeout-minutes: 10 + continue-on-error: ${{ matrix.allow-failure || false }} + if: success() # only run if previous steps have succeeded run: bundle exec rake test:all - allowedFailures: - name: >- - optional: ${{ matrix.os }} ${{ matrix.ruby }} - env: - CI: true - TESTOPTS: -v - - runs-on: ${{ matrix.os }}-latest - if: | - !(contains(github.event.pull_request.title, '[ci skip]') - || contains(github.event.head_commit.message, '[ci skip]')) - strategy: - fail-fast: false - matrix: - include: - - { os: ubuntu, ruby: jruby-head } - - steps: - - name: repo checkout - uses: actions/checkout@v2 - - - name: load ruby, ragel - uses: MSP-Greg/setup-ruby-pkgs@v1 - with: - ruby-version: ${{ matrix.ruby }} - apt-get: ragel - brew: ragel - - - name: bundle install - run: | - bundle install --jobs 4 --retry 3 --path=.bundle/puma - - - name: compile - continue-on-error: true - run: bundle exec rake compile - - - name: test - timeout-minutes: 10 - continue-on-error: true - if: success() - run: bundle exec rake + - name: >- + Test outcome: ${{ steps.test.outcome }} + # every step must define a `uses` or `run` key + run: echo NOOP