Skip to content

Demo correct commit SHA incl. github action merge commit #254

Demo correct commit SHA incl. github action merge commit

Demo correct commit SHA incl. github action merge commit #254

Workflow file for this run

name: Rails Unit Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
- name: Build and test with Rake
env:
RAILS_ENV: test
run: |
sudo apt-get -yqq install libsqlite3-dev
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rails test
ruby -e "$(curl -s https://undercover-ci.com/uploader.rb)" -- \
--repo twitchy-tortoise/undercover-test \
--commit ${{ github.event.pull_request.head.sha || github.sha }} \
--lcov coverage/lcov/undercover-test.lcov