Skip to content

Merge pull request #192 from DeployGate/dependabot/github_actions/rub… #314

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

Merge pull request #192 from DeployGate/dependabot/github_actions/rub… #314

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