Skip to content

Merge pull request #235 from opus-codium/dependabot/bundler/rspec-rai… #689

Merge pull request #235 from opus-codium/dependabot/bundler/rspec-rai…

Merge pull request #235 from opus-codium/dependabot/bundler/rspec-rai… #689

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
# XXX: Workaround for older rubygems bug
# https://github.com/ruby/setup-ruby/issues/518
rubygems: latest
- name: Rubocop
run: bundle exec rubocop
- name: Haml-lint
run: |
bundle exec haml-lint
- name: Prepare database
run: |
RAILS_ENV=test bundle exec rails db:setup
- name: RSpec
run: |
RAILS_ENV=test bundle exec rails spec
- name: Cucumber
run: |
RAILS_ENV=test bundle exec cucumber