Skip to content

Bump rubocop-rspec from 2.25.0 to 3.2.0 #73

Bump rubocop-rspec from 2.25.0 to 3.2.0

Bump rubocop-rspec from 2.25.0 to 3.2.0 #73

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- "v**"
pull_request:
concurrency:
group: branch-ci-${{ github.ref }}
cancel-in-progress: true
jobs:
rspec:
runs-on: ubuntu-latest
timeout-minutes: 30
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby: ["2.7.7", "3.0.5", "3.1.4", "3.2.1"]
steps:
- uses: actions/checkout@v1
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Configure Git
run: |
git config --global user.email "shayonj@gmail.com"
git config --global user.name "Shayon Mukherjee"
git config --global init.defaultBranch main
- name: Bundle install
env:
RAILS_ENV: test
run: |
gem install bundler
bundle install --jobs 4 --retry 3 --path vendor/bundle
- name: Run Lint
run: bundle exec rubocop
- name: Run RSpec
run: bundle exec rspec
build-push-image:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
timeout-minutes: 30
needs: [rspec]
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Branch name
id: version_name
run: |
echo ::set-output name=no_v_tag::${GITHUB_REF_NAME:1}
- name: Build and push
uses: docker/build-push-action@v4
with:
platforms: linux/amd64,linux/arm64
push: true
build-args: VERSION=${{ steps.version_name.outputs.no_v_tag }}
tags: shayonj/branch_base:latest, shayonj/branch_base:${{ steps.version_name.outputs.no_v_tag }}