-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (29 loc) · 1.04 KB
/
code_analysis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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