Skip to content

Bump rack from 2.2.3 to 2.2.8.1 #44

Bump rack from 2.2.3 to 2.2.8.1

Bump rack from 2.2.3 to 2.2.8.1 #44

Workflow file for this run

name: Dev
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
setup_pr:
runs-on: ubuntu-latest
# Dependabot no longer have access to secrets unless we move to pull_request_target.
# Read more: https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
# Remove review_ready label when new commit push to PR
- name: Remove review_ready label
if: ${{ contains(github.event.pull_request.labels.*.name, 'review_ready') }}
uses: actions/github-script@v3
with:
# Fallback to github action token with limited access
# when DevOps token isn't available this happens on dependabot.
github-token: ${{secrets.DEVOPS_GITHUB_TOKEN || github.token}}
script: |
github.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'review_ready'
})
# Add wip label when new commit push to PR
- name: Add wip label
if: ${{ !contains(github.event.pull_request.labels.*.name, 'wip') }}
uses: actions/github-script@v3
with:
# Fallback to github action token with limited access
# when DevOps token isn't available this happens on dependabot.
github-token: ${{secrets.DEVOPS_GITHUB_TOKEN || github.token}}
script: |
github.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['wip']
})
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop --parallel
codespell:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install codespell
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Check spelling with codespell
run: codespell --ignore-words=codespell.txt || exit 1
unit_test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
gemfile:
- rails_5.2_stable
- rails_6.0_stable
- rails_6.1_stable
- rails_7.0_stable
- rails_edge
ruby: ['2.7', '3.0', '3.1']
exclude:
- ruby: '3.0'
gemfile: rails_5.2_stable
- ruby: '3.1'
gemfile: rails_5.2_stable
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Suppress git warnings
run: git config --global init.defaultBranch main
- name: Run RSpec
run: bundle exec rspec