Skip to content

Commit

Permalink
migrate CI to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Feb 16, 2021
1 parent 84fcc54 commit a6fd534
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 45 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release

on:
create:
ref_type: tag

jobs:
release:
runs-on: ubuntu-latest
if: github.repository == 'voxpupuli/hiera-eyaml'
env:
BUNDLE_WITHOUT: release
steps:
- uses: actions/checkout@v2
- name: Install Ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
- name: Build gem
run: gem build *.gemspec
- name: Publish gem
run: gem push *.gem
env:
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test

on:
- pull_request
- push

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "2.5"
- "2.6"
- "2.7"
env:
BUNDLE_WITHOUT: release
PUPPET_VERSION: "~> 6.0"
name: Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
- name: Install expect
run: sudo apt-get install expect
- name: Install Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec cucumber -f progress
45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

0 comments on commit a6fd534

Please sign in to comment.