Commit 481e94d 1 parent f3b1ecc commit 481e94d Copy full SHA for 481e94d
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
rails_app_root : rails_mysql
12
12
DB_HOST : mysql
13
13
14
+ defaults :
15
+ run :
16
+ working-directory : rails_mysql
17
+
14
18
jobs :
15
19
scan_ruby :
16
20
runs-on : ubuntu-latest
27
31
28
32
- name : Scan for common Rails security vulnerabilities using static analysis
29
33
run : ./bin/brakeman --no-pager
30
- working-directory : ${{ env.rails_app_root }}
31
34
32
35
lint :
33
36
runs-on : ubuntu-latest
44
47
45
48
- name : Lint code for consistent style
46
49
run : ./bin/rubocop -f github
47
- working-directory : ${{ env.rails_app_root }}
48
50
49
51
rspec :
50
52
runs-on : ubuntu-latest
73
75
run : |
74
76
sleep 3 # Waiting to make sure MySQL is up and running
75
77
./bin/rails db:reset
76
- working-directory : ${{ env.rails_app_root }}
77
78
78
79
- name : Run RSpec
79
80
run : ./bin/rspec --format json --out tmp/rspec_results.json --format progress
80
- working-directory : ${{ env.rails_app_root }}
81
81
82
82
- name : Generate RSpec report
83
83
uses : SonicGarden/rspec-report-action@v5
You can’t perform that action at this time.
0 commit comments