Skip to content

Commit

Permalink
Merge pull request #19 from voxpupuli/github-actions
Browse files Browse the repository at this point in the history
Convert to Github Actions
  • Loading branch information
bastelfreak authored Dec 5, 2020
2 parents 20d7f3c + ba7c37f commit 14b359b
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 26 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release

on:
create:
ref_type: tag

jobs:
release:
runs-on: ubuntu-latest
if: github.repository == 'voxpupuli/puppet-lint-trailing_comma-check'
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 }}'
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test

on:
- pull_request
- push

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- "2.4"
- "2.5"
- "2.6"
- "2.7"
steps:
- uses: actions/checkout@v2
- name: Install Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake spec
3 changes: 0 additions & 3 deletions .sync.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .travis.yml

This file was deleted.

0 comments on commit 14b359b

Please sign in to comment.