Skip to content

Commit

Permalink
Add criteo's cookbooks CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Annih committed Jul 30, 2024
1 parent ac3c162 commit eda5b3c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 19 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/criteo-cookbooks-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This is a basic workflow to help you get started with Actions
name: Criteo Cookbooks CI
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
tags: [ 'v*' ]
pull_request:
branches: [ master ]

jobs:
cookstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Run Cookstyle
run: bundle exec cookstyle --display-cop-names --extra-details
rspec:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Run RSpec
run: bundle exec rspec
supermarket:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: [cookstyle, rspec]
steps:
- uses: actions/checkout@v4
- name: Publish to supermarket
uses: afaundez/chef-supermarket-action@8cdbe1cccbe1ecd8685b2ea8f48780135bae7cee
with:
user: criteo
cookbook: wsus-server
category: Package Management
env:
SUPERMARKET_API_KEY: ${{ secrets.SUPERMARKET_API_KEY }}
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

Binary file removed .travis/client.pem.enc
Binary file not shown.

0 comments on commit eda5b3c

Please sign in to comment.