Skip to content

Commit 426428b

Browse files
Add GH actions
1 parent 53903f9 commit 426428b

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.github/workflows/lint.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Lint
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Install
13+
uses: trinhngocthuyen/gh-actions/rb/install@main
14+
with:
15+
bundle-install: true
16+
- name: Makefile
17+
uses: trinhngocthuyen/gh-actions/core/makefile@main
18+
with:
19+
targets: lint

.github/workflows/test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Test
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Install
13+
uses: trinhngocthuyen/gh-actions/rb/install@main
14+
with:
15+
bundle-install: true
16+
- name: Makefile
17+
uses: trinhngocthuyen/gh-actions/core/makefile@main
18+
with:
19+
targets: test

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
AllCops:
22
NewCops: enable
33
SuggestExtensions: false
4+
Include:
5+
- lib/**/*.rb
6+
- spec/**/*.rb
47
Exclude:
58
- spec/spec_helper.rb
69

0 commit comments

Comments
 (0)