Skip to content

Merge pull request #144 from DeployGate/dependabot/github_actions/act… #228

Merge pull request #144 from DeployGate/dependabot/github_actions/act…

Merge pull request #144 from DeployGate/dependabot/github_actions/act… #228

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@b4ffde65f46336ab88eb53be808477a3936bae11
- 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@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677
with:
bundler-cache: true
- uses: actions/setup-java@9704b39bf258b59bc04b50fa2dd55e9ed76b47a8
with:
distribution: 'corretto'
java-version: ${{ matrix.java-version }}
- uses: ./.github/actions/setup-buildtools
with:
buildtools-version: ${{ matrix.buildtools-version }}
- run: bundle exec rake specs