diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2020-11-09 16:51:05 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2020-11-09 16:51:05 -0700 |
| commit | d2f50d92c22ce326ee1ba8c1c93e4c0d9dcad2f4 (patch) | |
| tree | 2695cb3f690f83d4849f626d62d8bd129712637c | |
| parent | 1215bedf241d4be44c14601e29585b143a4ccf12 (diff) | |
consolidate config for CI workflow
| -rw-r--r-- | .github/workflows/ci.yml | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2724b65..e0819b8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,10 +7,10 @@ on: jobs: activate: runs-on: ubuntu-latest - if: | - !endsWith(github.event.head_commit.message, '[skip ci]') + if: "!endsWith(github.event.head_commit.message, '[skip ci]')" steps: - - run: echo ok go + - name: Proceed + run: echo ok go build: needs: activate strategy: @@ -55,30 +55,20 @@ jobs: bundle config --local without docs - name: Set Rouge version if: matrix.rouge-version - run: | - echo "ROUGE_VERSION=${{ matrix.rouge-version }}" >> $GITHUB_ENV + run: echo 'ROUGE_VERSION=${{ matrix.rouge-version }}' >> $GITHUB_ENV - name: Set JRUBY_OPTS if: matrix.jruby-opts - run: | - echo "JRUBY_OPTS=${{ matrix.jruby-opts }}" >> $GITHUB_ENV + run: echo 'JRUBY_OPTS=${{ matrix.jruby-opts }}' >> $GITHUB_ENV - name: Install Nokogiri build dependencies if: contains(matrix.ruby, 'truffleruby') - run: | - sudo apt-get install libxslt1-dev + run: sudo apt-get install libxslt1-dev - name: Install dependencies - run: | - bundle --jobs 3 --retry 3 + run: bundle --jobs 3 --retry 3 - name: Run tests - run: | - bundle exec ruby -w $(bundle exec ruby -e 'print File.join Gem.bindir, %q(rake)') test:all + run: bundle exec ruby -w $(bundle exec ruby -e 'print File.join Gem.bindir, %q(rake)') test:all - name: Build dependents - if: | - matrix.primary && - github.event_name != 'schedule' && - github.repository == 'asciidoctor/asciidoctor' && - !github.base_ref + if: matrix.primary && github.event_name != 'schedule' && github.repository == 'asciidoctor/asciidoctor' && !github.base_ref env: GITHUB_API_TOKEN: ${{ secrets._GITHUB_API_TOKEN }} TRAVIS_API_TOKEN: ${{ secrets.TRAVIS_API_TOKEN }} - run: | - bundle exec rake build:dependents + run: bundle exec rake build:dependents |
