Skip to content

build(deps-dev): update overcommit requirement from 0.60.0 to 0.63.0 #54

build(deps-dev): update overcommit requirement from 0.60.0 to 0.63.0

build(deps-dev): update overcommit requirement from 0.60.0 to 0.63.0 #54

Workflow file for this run

name: Test Suite
on:
pull_request:
push:
branches:
- main
jobs:
overcommit:
runs-on: ubuntu-latest
name: Overcommit checks
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Overcommit checks
# NOTE: Set to make Overcommit's AuthorName and AuthorEmail checks happy.
env:
GIT_AUTHOR_NAME: example
GIT_AUTHOR_EMAIL: [email protected]
run: |
bundle exec overcommit --sign --force
SKIP=ForbiddenBranches bundle exec overcommit --run
specs:
needs: [overcommit]
runs-on: ${{ matrix.os }}
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-22.04", "macos-12", "windows-2022"]
ruby: ["2.6", "2.7", "3.0", "3.1", "3.2"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the default task
env:
# NOTE: Using fixed console table width.
# TTY width in GitHub actions could be as small as "1" for Windows machines.
TTY_TABLE_WIDTH: fixed
run: bundle exec rake
build_and_test_docker_image:
needs: [overcommit]
runs-on: ubuntu-latest
name: Build and test docker image
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build docker image
uses: docker/build-push-action@v4
with:
load: true
tags: test
- name: Run image
run: |
mkdir -p /tmp/sample_data
cp spec/sample_data/system/input.csv /tmp/sample_data/input.csv
docker run -t --rm \
-v /tmp/sample_data:/tmp/sample_data \
test \
--input /tmp/sample_data/input.csv \
--output /tmp/sample_data/output.csv
- name: Check results
run: diff /tmp/sample_data/output.csv spec/sample_data/system/output.csv