Skip to content

Merge pull request #150 from DeployGate/jmatsu/bump/1.8.0 #242

Merge pull request #150 from DeployGate/jmatsu/bump/1.8.0

Merge pull request #150 from DeployGate/jmatsu/bump/1.8.0 #242

name: Build and test
on:
pull_request:
types:
- opened
- synchronize
push:
branches:
- master
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
task:
- rubocop
- rdoc
timeout-minutes: 5
name: "Execute ${{ matrix.task }}"
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677
with:
bundler-cache: true
- run: bundle exec rake ${{ matrix.task }}
build:
runs-on: ubuntu-latest
strategy:
matrix: # Use as the parameter injection
java-version:
- 11
buildtools-version:
- 34.0.0
timeout-minutes: 20
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677
with:
bundler-cache: true
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9
with:
distribution: 'corretto'
java-version: ${{ matrix.java-version }}
- uses: ./.github/actions/setup-buildtools
with:
buildtools-version: ${{ matrix.buildtools-version }}
- run: bundle exec rake specs