Skip to content

Commit

Permalink
Merge pull request #4 from jordiprats/master
Browse files Browse the repository at this point in the history
workflows
  • Loading branch information
jordiprats authored May 17, 2020
2 parents 079f11e + 9146f93 commit f15b700
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/puppet-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: puppet-lint

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
with:
ruby-version: 2.6

- name: Install dependencies
run: bundle install

- name: Run tests
run: bundle exec rake

# Runs a single command using the runners shell
- name: puppet-lint
run: bundle exec rake lint
39 changes: 39 additions & 0 deletions .github/workflows/puppet-metadata-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: puppet-metadata-lint

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
with:
ruby-version: 2.6

- name: Install dependencies
run: bundle install

- name: Run tests
run: bundle exec rake

# Runs a single command using the runners shell
- name: puppet-lint
run: bundle exec rake metadata_lint
39 changes: 39 additions & 0 deletions .github/workflows/puppet-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: puppet-validate

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
with:
ruby-version: 2.6

- name: Install dependencies
run: bundle install

- name: Run tests
run: bundle exec rake

# Runs a single command using the runners shell
- name: puppet-lint
run: bundle exec rake validate

0 comments on commit f15b700

Please sign in to comment.