Skip to content

Merge pull request #245 from Crown-Commercial-Service/dependabot/gith… #549

Merge pull request #245 from Crown-Commercial-Service/dependabot/gith…

Merge pull request #245 from Crown-Commercial-Service/dependabot/gith… #549

Workflow file for this run

name: "Analyse code with Rubocop and do a dry run"
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Ruby and gems
uses: ruby/[email protected]
with:
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop
- name: Create test config and reprot directory
run: |
cp config/environment.test.yml config/environment.preview.yml
cp config/environment.test.yml config/environment.production.yml
mkdir reports
- name: Run cucumber tests - Non production
run: TEST_ENV=preview bundle exec cucumber features/services --dry-run
- name: Run cucumber tests - Production
run: TEST_ENV=production bundle exec cucumber features/services/ --dry-run
- name: Run cucumber tests - Accessibility
run: TEST_ENV=preview bundle exec cucumber -p accessibility features/accessibility/ --dry-run