Skip to content

Commit ab6109d

Browse files
committed
Add dependabot and CI
1 parent e208412 commit ab6109d

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/dependabot.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "bundler"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/main.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Main
2+
on:
3+
- push
4+
- pull_request_target
5+
jobs:
6+
ci:
7+
name: CI
8+
runs-on: ubuntu-latest
9+
env:
10+
CI: true
11+
steps:
12+
- uses: actions/checkout@master
13+
- uses: ruby/setup-ruby@v1
14+
with:
15+
bundler-cache: true
16+
ruby-version: '3.1'
17+
- name: Test
18+
run: |
19+
bundle exec rake test
20+
bundle exec rake stree:check
21+
automerge:
22+
name: AutoMerge
23+
needs: ci
24+
runs-on: ubuntu-latest
25+
if: github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]'
26+
steps:
27+
- uses: actions/github-script@v3
28+
with:
29+
script: |
30+
github.pulls.merge({
31+
owner: context.payload.repository.owner.login,
32+
repo: context.payload.repository.name,
33+
pull_number: context.payload.pull_request.number
34+
})

0 commit comments

Comments
 (0)