Skip to content

Commit

Permalink
Run Ruby tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Oct 26, 2023
1 parent d23c38d commit 66e401d
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,41 @@ on:
- main

jobs:
test:
name: Tests
unit_tests:
name: Unit tests
runs-on: ubuntu-22.04

steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9

- name: Setup Ruby
uses: ruby/setup-ruby@52b8784594ec115fd17094752708121dc5dabb47
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226
uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1
with:
install: true

- name: Build Docker image and store in cache
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825
with:
context: .
push: false
Expand Down

0 comments on commit 66e401d

Please sign in to comment.