Skip to content

Bump docker/build-push-action from 5.1.0 to 5.2.0 #293

Bump docker/build-push-action from 5.1.0 to 5.2.0

Bump docker/build-push-action from 5.1.0 to 5.2.0 #293

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
unit_tests:
name: Unit tests
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Setup Ruby
uses: ruby/setup-ruby@d4526a55538b775af234ba4af27118ed6f8f6677
with:
ruby-version: .ruby-version
bundler-cache: true
- name: Install gems
run: bundle install
- name: Run tests
run: bundle exec rake test
smoke_tests:
name: Smoke tests
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@0d103c3126aa41d772a8362f6aa67afac040f80c
with:
install: true
- name: Build Docker image and store in cache
uses: docker/build-push-action@af5a7ed5ba88268d5278f7203fb52cd833f66d6e
with:
context: .
push: false
load: true
tags: exercism/ruby-test-runner
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run Tests in Docker
run: bin/run-tests-in-docker.sh