Skip to content

Merge pull request #202 from DeployGate/dependabot/github_actions/rub… #332

Merge pull request #202 from DeployGate/dependabot/github_actions/rub…

Merge pull request #202 from DeployGate/dependabot/github_actions/rub… #332

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@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf
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:
- 35.0.0
timeout-minutes: 20
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: ruby/setup-ruby@401c19e14f474b54450cd3905bb8b86e2c8509cf
with:
bundler-cache: true
- uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b
with:
distribution: 'corretto'
java-version: ${{ matrix.java-version }}
- uses: ./.github/actions/setup-buildtools
with:
buildtools-version: ${{ matrix.buildtools-version }}
- run: bundle exec rake specs