Bump actions/checkout from 3 to 4 #566
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- '*' | |
tags-ignore: | |
- '*' | |
pull_request: | |
jobs: | |
activate: | |
runs-on: ubuntu-latest | |
if: "!endsWith(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- name: Proceed | |
run: echo ok go | |
lint: | |
needs: activate | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.1' | |
bundler-cache: true | |
- name: Lint | |
run: bundle exec rake lint | |
test: | |
needs: activate | |
strategy: | |
matrix: | |
# TODO: Use 'jruby-9.2' when https://github.com/jruby/jruby/issues/6648 is fixed | |
ruby: ['jruby-9.2.16', '2.5', '2.6', '2.7', '3.0', '3.1'] | |
os: [ubuntu-latest, windows-latest] | |
asciidoctor: [''] | |
include: | |
- ruby: '3.1' | |
os: ubuntu-latest | |
asciidoctor: '1.5.6' | |
- ruby: '3.1' | |
os: macos-latest | |
asciidoctor: '' | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '17' | |
- name: Set up Asciidoctor | |
if: matrix.asciidoctor != '' | |
run: echo "ASCIIDOCTOR_VERSION=${{ matrix.asciidoctor }}" >> "${GITHUB_ENV}" | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true | |
- name: Test | |
run: bundle exec rake spec |