Merge pull request #155 from Crown-Commercial-Service/dependabot/bund… #362
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: "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 | |
run: | | |
cp config/environment.test.yml config/environment.preview.yml | |
cp config/environment.test.yml config/environment.production.yml | |
- 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 |