Skip to content

Commit dfba42f

Browse files
committed
Workflows
1 parent 1951175 commit dfba42f

File tree

8 files changed

+49
-134
lines changed

8 files changed

+49
-134
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,3 @@ updates:
1515
time: "09:00"
1616
timezone: "Etc/UTC"
1717
open-pull-requests-limit: 10
18-
allow:
19-
- dependency-name: "*"
20-
dependency-type: "production"

.github/workflows/automerge.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,5 @@ permissions:
99

1010
jobs:
1111
dependabot:
12-
name: Dependabot
13-
runs-on: ubuntu-latest
14-
15-
if: ${{ github.actor == 'dependabot[bot]' }}
16-
steps:
17-
- name: Fetch Dependabot metadata
18-
id: dependabot-metadata
19-
uses: dependabot/fetch-metadata@v1
20-
with:
21-
github-token: "${{ secrets.GITHUB_TOKEN }}"
22-
23-
- name: Approve Dependabot PR
24-
if: ${{steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'}}
25-
run: gh pr review --approve "$PR_URL"
26-
env:
27-
PR_URL: ${{github.event.pull_request.html_url}}
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
30-
- name: Merge Dependabot PR
31-
run: gh pr merge --auto --squash "$PR_URL"
32-
env:
33-
PR_URL: ${{ github.event.pull_request.html_url }}
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
uses: yettoapp/actions/.github/workflows/automerge_dependabot.yml@main
13+
secrets: inherit

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Ruby
17+
uses: yettoapp/actions/setup-languages@main
18+
with:
19+
ruby: true
20+
21+
- name: Run tests
22+
run: bundle exec rake test

.github/workflows/lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v3
16-
- uses: ruby/setup-ruby@v1
16+
17+
- name: Set up Ruby
18+
uses: yettoapp/actions/setup-languages@main
1719
with:
18-
ruby-version: 3.1.0
19-
rubygems: latest
20-
bundler-cache: true
21-
- run: bundle install
20+
ruby: true
21+
2222
- name: Rubocop
2323
run: bundle exec rake rubocop

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- "lib/html_pipeline/version.rb"
10+
11+
jobs:
12+
ruby:
13+
uses: yettoapp/actions/.github/workflows/ruby_gem_release.yml@main
14+
secrets:
15+
rubygems_api_key: ${{ secrets.RUBYGEMS_API_BOT_KEY }}
16+
gh_token: ${{ secrets.GITHUB_TOKEN }}
17+
with:
18+
gem_name: html-pipeline
19+
version_filepath: lib/html_pipeline/version.rb

.github/workflows/tag_and_release.yml

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

.github/workflows/test.yml

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

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.2.1

0 commit comments

Comments
 (0)