Skip to content

Commit

Permalink
Split Github pipelines and test yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed Jan 18, 2021
1 parent 25f4403 commit a950d73
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: linters

'on':
pull_request:
push:
branches:
- master

jobs:
yamllint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Run yaml Lint
uses: actionshub/yamllint@main
chefstyle:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.5', '2.6', '2.7', '3.0']
name: Chefstyle on Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake style
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml → .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI
---
name: Unit

on:
'on':
pull_request:
push:
branches:
Expand All @@ -11,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.5', '2.6', '2.7', '3.0']
name: Lint & Test with Ruby ${{ matrix.ruby }}
ruby: ['2.5', '2.6', '2.7', '3.0']
name: Unit test on Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake
- run: bundle exec rake test

0 comments on commit a950d73

Please sign in to comment.