Skip to content

Commit 054ba5b

Browse files
committed
Set up GitHub
1 parent 195e3ac commit 054ba5b

File tree

6 files changed

+77
-6
lines changed

6 files changed

+77
-6
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
version: 2
2+
23
updates:
34
- package-ecosystem: bundler
45
directory: "/"
56
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 10
7+
interval: weekly
8+
89
- package-ecosystem: github-actions
910
directory: "/"
1011
schedule:
11-
interval: daily
12-
open-pull-requests-limit: 10
12+
interval: weekly

.github/release-drafter.yml

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

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
ruby: [ "3.2", "3.3", "3.4" ]
3939
steps:
4040
- name: Install packages
41-
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y build-essential git libyaml-dev pkg-config google-chrome-stable
41+
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y build-essential git libyaml-dev pkg-config
4242

4343
- name: Checkout code
4444
uses: actions/checkout@v4
@@ -52,5 +52,4 @@ jobs:
5252
- name: Run tests
5353
env:
5454
RAILS_ENV: test
55-
# REDIS_URL: redis://localhost:6379/0
5655
run: bin/test
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Dependabot Auto-merge
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
10+
cancel-in-progress: true
11+
12+
permissions: {}
13+
14+
jobs:
15+
dependabot:
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
uses: typisttech/.github/.github/workflows/dependabot-auto-merge.yml@v2
20+
with:
21+
minor: true
22+
patch: true
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release Drafter
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref_name }}
11+
cancel-in-progress: true
12+
13+
permissions: {}
14+
15+
jobs:
16+
release-drafter:
17+
uses: typisttech/.github/.github/workflows/release-drafter.yml@v2
18+
permissions:
19+
contents: write
20+
pull-requests: read

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
permissions: {}
9+
10+
jobs:
11+
push:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write
15+
environment: rubygems.org
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
# See: https://github.com/actions/checkout/issues/1467#issuecomment-2764532031
20+
fetch-depth: 1
21+
fetch-tags: true
22+
ref: ${{ github.ref }}
23+
24+
- uses: ruby/setup-ruby@v1
25+
with:
26+
bundler-cache: true
27+
ruby-version: ruby
28+
29+
- uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32

0 commit comments

Comments
 (0)