File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 31
31
run : yarn --immutable
32
32
- name : Lint
33
33
run : yarn lint
34
+ audit :
35
+ runs-on : ubuntu-latest
36
+ steps :
37
+ - uses : actions/checkout@v3
38
+ - name : Set up Ruby
39
+ uses : ruby/setup-ruby@v1
40
+ with :
41
+ bundler-cache : true
42
+ - name : Use Node.js
43
+ uses : actions/setup-node@v3
44
+ with :
45
+ node-version-file : " .nvmrc"
46
+ cache : " yarn"
47
+ - name : Install Ruby dependencies
48
+ run : bin/ci/install
49
+ - name : Install Yarn dependencies
50
+ run : yarn --immutable
51
+ - name : Audit
52
+ run : yarn audit
34
53
test :
35
54
needs :
36
55
- lint
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
7
7
gem "appraisal" ,
8
8
github : "thoughtbot/appraisal" ,
9
9
ref : "2f5be65b8e127bd602fd149f395f2f8fa50616a8"
10
+ gem "bundler-audit"
10
11
gem "childprocess"
11
12
gem "climate_control"
12
13
gem "pry-byebug" , platform : :mri
Original file line number Diff line number Diff line change 5
5
"private" : true ,
6
6
"scripts" : {
7
7
"lint" : " prettier --check ." ,
8
+ "audit" : " yarn npm audit && bundle exec bundle audit" ,
8
9
"lint:fix" : " yarn lint --write"
9
10
},
10
11
"simple-git-hooks" : {
11
- "pre-push" : " yarn lint"
12
+ "pre-push" : " yarn lint && yarn audit "
12
13
},
13
14
"devDependencies" : {
14
15
"@lavamoat/allow-scripts" : " ^2.3.0" ,
You can’t perform that action at this time.
0 commit comments