Skip to content

Commit cb20a5c

Browse files
dblockweb-flow
andcommitted
Migrate from Travis CI to GitHub Actions with danger-pr-comment workflow
Co-authored-by: GitHub Copilot <noreply@github.com>
1 parent 2d109e1 commit cb20a5c

9 files changed

Lines changed: 73 additions & 10 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Danger Comment
2+
3+
on:
4+
workflow_run:
5+
workflows: [Danger]
6+
types: [completed]
7+
8+
jobs:
9+
comment:
10+
uses: numbata/danger-pr-comment/.github/workflows/danger-comment.yml@v0.1.0
11+
secrets: inherit

.github/workflows/danger.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Danger
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, edited, synchronize]
6+
7+
jobs:
8+
danger:
9+
uses: numbata/danger-pr-comment/.github/workflows/danger-run.yml@v0.1.0
10+
secrets: inherit
11+
with:
12+
ruby-version: '3.4'
13+
bundler-cache: true

.github/workflows/rubocop.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: RuboCop
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
rubocop:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up Ruby
13+
uses: ruby/setup-ruby@v1
14+
with:
15+
ruby-version: '3.4'
16+
bundler-cache: true
17+
- name: Run RuboCop
18+
run: bundle exec rubocop

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
ruby-version: ['3.4']
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: ${{ matrix.ruby-version }}
19+
bundler-cache: true
20+
- name: Run tests
21+
run: bundle exec rspec

.travis.yml

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

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### 0.5.1 (Next)
22

3+
* [#45](https://github.com/dblock/fui/pull/45): Migrated from Travis CI to GitHub Actions with danger-pr-comment workflow - [@dblock](https://github.com/dblock).
34
* Your contribution here.
45

56
### 0.5.0 (2018/12/19)

Dangerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
toc.check
2-
changelog.check
1+
danger.import_dangerfile(gem: 'danger-pr-comment')
2+
3+
changelog.check!
4+
toc.check!

Gemfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ source 'http://rubygems.org'
22

33
gemspec
44

5-
gem 'danger-changelog', '~> 0.4.0'
6-
gem 'danger-toc', '~> 0.1'
5+
gem 'danger'
6+
gem 'danger-changelog'
7+
gem 'danger-pr-comment', '0.1.0'
8+
gem 'danger-toc'
79
gem 'rake'
810
gem 'rspec', '~> 3.4.0'
911
gem 'rubocop', '0.61.1'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Fui
22
==========
33

44
[![Gem Version](https://badge.fury.io/rb/fui.svg)](https://badge.fury.io/rb/fui)
5-
[![Build Status](https://travis-ci.org/dblock/fui.svg)](https://travis-ci.org/dblock/fui)
5+
[![Test](https://github.com/dblock/fui/actions/workflows/test.yml/badge.svg)](https://github.com/dblock/fui/actions/workflows/test.yml)
66

77
Find unused Objective-C imports.
88

0 commit comments

Comments
 (0)