Skip to content

Build Status

Build Status #82

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Build Status
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version:
# Current ruby stable version
- 3.1.2
# Ubuntu 22.04
- 3.0
# Ubuntu 20.04
- 2.7
# For date_column errors
- 2.6
steps:
- uses: actions/checkout@v3
- name: Update package
run: sudo apt-get update
- name: Install packages
run: sudo apt-get -y install ledger hledger
- name: Set up Ruby ${{ matrix.ruby-version }}
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# use ruby/setup-ruby@v1 (see https://github.com/ruby/setup-ruby#versioning):
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems
- name: Run tests
run: bundle exec rake test_all