Skip to content

Commit fe77f84

Browse files
authored
Merge pull request #23 from voxpupuli/modulesync
modulesync / add badges to README.md / cleanup gemspec
2 parents f4c0056 + 3d78dd3 commit fe77f84

File tree

10 files changed

+537
-43
lines changed

10 files changed

+537
-43
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
if: github.repository_owner == 'voxpupuli'
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Install Ruby 3.0
15+
uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: '3.0'
18+
env:
19+
BUNDLE_WITHOUT: release
20+
- name: Build gem
21+
run: gem build *.gemspec
22+
- name: Publish gem to rubygems.org
23+
run: gem push *.gem
24+
env:
25+
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
26+
- name: Setup GitHub packages access
27+
run: |
28+
mkdir -p ~/.gem
29+
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
30+
chmod 0600 ~/.gem/credentials
31+
- name: Publish gem to GitHub packages
32+
run: gem push --key github --host https://rubygems.pkg.github.com/voxpupuli *.gem

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test
2+
3+
on:
4+
- pull_request
5+
- push
6+
7+
env:
8+
BUNDLE_WITHOUT: release
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
- ruby: "2.4"
18+
- ruby: "2.5"
19+
- ruby: "2.6"
20+
- ruby: "2.7"
21+
- ruby: "3.0"
22+
coverage: "yes"
23+
env:
24+
COVERAGE: ${{ matrix.coverage }}
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Install Ruby ${{ matrix.ruby }}
28+
uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: ${{ matrix.ruby }}
31+
bundler-cache: true
32+
- name: Run tests
33+
run: bundle exec rake spec
34+
- name: Verify gem builds
35+
run: gem build *.gemspec

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/.bundle/
2-
/vendor/
2+
/vendor/gems/
33
/Gemfile.lock
4-
puppet-lint-strict_indent-check-*.gem
5-
*.swp
6-
*.swo
4+
vendor/bundle
5+
.vendor/

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

Gemfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1-
source 'https://rubygems.org'
1+
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
22

33
gemspec
4+
5+
group :release do
6+
gem 'github_changelog_generator', require: false
7+
end
8+
9+
group :coverage, optional: ENV['COVERAGE']!='yes' do
10+
gem 'simplecov-console', :require => false
11+
gem 'codecov', :require => false
12+
end

0 commit comments

Comments
 (0)