Skip to content

Conditional block executed in the context of serializer method (#119) #413

Conditional block executed in the context of serializer method (#119)

Conditional block executed in the context of serializer method (#119) #413

Workflow file for this run

name: Build
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- master
jobs:
Build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4']
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Bundle install
run: bundle install
- name: Specs with coverage
if: ${{ matrix.ruby == 2.7 }}
run: "RUBYOPT='--enable=frozen-string-literal --debug=frozen-string-literal' bundle exec rake"
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
CI_PULL_REQUEST: ${{ github.event.number }}
CI_BRANCH: ${{ github.head_ref }}
- name: Specs
if: ${{ matrix.ruby != 2.7 }}
run: "RUBYOPT='--enable=frozen-string-literal --debug=frozen-string-literal' bundle exec rake"
Rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby 2.7
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Bundle install
run: bundle install
- name: Rubocop
run: bundle exec rubocop