This repository has been archived by the owner on Jan 27, 2025. It is now read-only.
Merge pull request #170 from moj-analytical-services/AntonyBishop-pat… #420
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rspec tests | |
env: | |
RUBY_VERSION: 3.1.0 | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
types: [opened, edited, reopened, synchronize] | |
jobs: | |
rspec-test: | |
name: RSpec | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ env.RUBY_VERSION }} | |
bundler-cache: true | |
- run: bundle install | |
- name: Install simplecov | |
run: | | |
gem install simplecov | |
- name: Run tests | |
run: bundle exec rspec | |
- name: Run depedency audit | |
run: | | |
bundle exec bundler-audit |