Skip to content

Commit c335053

Browse files
authored
Merge pull request #3 from sue445/develop
Setup repo
2 parents 3a3f178 + 020e302 commit c335053

File tree

6 files changed

+109
-31
lines changed

6 files changed

+109
-31
lines changed

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
version: 2
6+
7+
updates:
8+
- package-ecosystem: github-actions
9+
directory: /
10+
schedule:
11+
interval: weekly
12+
time: "05:00"
13+
timezone: Asia/Tokyo
14+
assignees:
15+
- sue445

.github/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# ref. https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes
2+
3+
changelog:
4+
categories:
5+
- title: ":bomb: Breaking Changes"
6+
labels:
7+
- breaking change
8+
9+
- title: ":rocket: Features"
10+
labels:
11+
- enhancement
12+
13+
- title: ":bug: Bug Fixes"
14+
labels:
15+
- bug
16+
17+
- title: ":ghost: Maintenance"
18+
labels:
19+
- chore
20+
21+
- title: ":dependabot: Dependency updates"
22+
labels:
23+
- dependencies
24+
25+
- title: ":pencil: Other Changes"
26+
labels:
27+
- "*"

.github/workflows/main.yml

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

.github/workflows/test.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
20+
matrix:
21+
ruby:
22+
- "3.3"
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: ${{ matrix.ruby }}
30+
bundler-cache: true
31+
32+
- name: bundle update
33+
run: |
34+
set -xe
35+
bundle config path vendor/bundle
36+
bundle update --jobs $(nproc) --retry 3
37+
38+
- run: sudo apt-get update
39+
- run: sudo apt-get install -y universal-ctags
40+
41+
- run: bundle exec rspec
42+
43+
- name: Slack Notification (not success)
44+
uses: act10ns/slack@v2
45+
if: "! success()"
46+
continue-on-error: true
47+
with:
48+
status: ${{ job.status }}
49+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
50+
matrix: ${{ toJson(matrix) }}
51+
52+
notify:
53+
needs:
54+
- test
55+
56+
runs-on: ubuntu-latest
57+
58+
steps:
59+
- name: Slack Notification (success)
60+
uses: act10ns/slack@v2
61+
if: always()
62+
continue-on-error: true
63+
with:
64+
status: ${{ job.status }}
65+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@
99

1010
# rspec failure tracking
1111
.rspec_status
12+
13+
Gemfile.lock

spec/ruby_header_parser_spec.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,4 @@
44
it "has a version number" do
55
expect(RubyHeaderParser::VERSION).not_to be nil
66
end
7-
8-
it "does something useful" do
9-
expect(false).to eq(true)
10-
end
117
end

0 commit comments

Comments
 (0)