File tree 3 files changed +45
-19
lines changed
3 files changed +45
-19
lines changed Original file line number Diff line number Diff line change
1
+ # This is a basic workflow to help you get started with Actions
2
+ name : Criteo Cookbooks CI
3
+ on :
4
+ # Triggers the workflow on push or pull request events but only for the master branch
5
+ push :
6
+ branches : [ master ]
7
+ tags : [ 'v*' ]
8
+ pull_request :
9
+ branches : [ master ]
10
+
11
+ jobs :
12
+ cookstyle :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - uses : ruby/setup-ruby@v1
17
+ with :
18
+ ruby-version : 3.1
19
+ bundler-cache : true
20
+ - name : Run Cookstyle
21
+ run : bundle exec cookstyle --display-cop-names --extra-details
22
+ rspec :
23
+ runs-on : windows-latest
24
+ steps :
25
+ - uses : actions/checkout@v4
26
+ - uses : ruby/setup-ruby@v1
27
+ with :
28
+ ruby-version : 3.1
29
+ bundler-cache : true
30
+ - name : Run RSpec
31
+ run : bundle exec rspec
32
+ supermarket :
33
+ runs-on : ubuntu-latest
34
+ if : startsWith(github.ref, 'refs/tags/')
35
+ needs : [cookstyle, rspec]
36
+ steps :
37
+ - uses : actions/checkout@v4
38
+ - name : Publish to supermarket
39
+ uses : afaundez/chef-supermarket-action@8cdbe1cccbe1ecd8685b2ea8f48780135bae7cee
40
+ with :
41
+ user : criteo
42
+ cookbook : wsus-server
43
+ category : Package Management
44
+ env :
45
+ SUPERMARKET_API_KEY : ${{ secrets.SUPERMARKET_API_KEY }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments