Skip to content

Commit 914a6f7

Browse files
committed
Switch from Travis CI to GitHub Actions
1 parent 1b5284e commit 914a6f7

3 files changed

Lines changed: 50 additions & 28 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
on:
2+
- pull_request
3+
- push
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
ruby:
12+
- 2.5
13+
- 2.6
14+
- 2.7
15+
env:
16+
BUNDLE_WITHOUT: release
17+
name: Ruby ${{ matrix.ruby }}
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Install Ruby ${{ matrix.ruby }}
21+
uses: ruby/setup-ruby@v1
22+
with:
23+
ruby-version: ${{ matrix.ruby }}
24+
bundler-cache: true
25+
- name: Run tests
26+
run: bundle exec rake test

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on:
4+
create:
5+
ref_type: tag
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
if: github.repository == 'voxpupuli/modulesync'
11+
env:
12+
BUNDLE_WITHOUT: release
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Install Ruby 2.7
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: '2.7'
19+
- name: Build gem
20+
run: gem build *.gemspec
21+
- name: Publish gem
22+
run: gem push *.gem
23+
env:
24+
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'

.travis.yml

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

0 commit comments

Comments
 (0)