Skip to content

Upgrade ruby and its dependencies. #96

Upgrade ruby and its dependencies.

Upgrade ruby and its dependencies. #96

Workflow file for this run

name: Branch Checks
on:
push:
branches-ignore:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: git fetch origin main --depth=1
- name: RuboCop Linter
uses: andrewmcodes/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
spec:
runs-on: ubuntu-latest
env:
COVERAGE: 1
steps:
- uses: actions/checkout@v4
# The imb_db can only be installed on x86_64 systems, so it may not
# currently be present in the lock file. The setup-ruby action will
# fail if this is the case, so we'll remove it.
#
# This should be removed when the imb_db gem is available for ARM.
- name: Remove lock file
run: rm -f Gemfile.lock
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run tests
run: bundle exec rspec
image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
steps:
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}