Skip to content

Commit 9370cab

Browse files
authored
Merge pull request #1 from Watson1978/ci
CI: Add GitHub actions workflow
2 parents 8778526 + 06cc190 commit 9370cab

3 files changed

Lines changed: 42 additions & 1 deletion

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'github-actions'
4+
directory: '/'
5+
schedule:
6+
interval: 'monthly'

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: test
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
schedule:
8+
- cron: '0 0 1 * *'
9+
jobs:
10+
ruby-versions:
11+
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
12+
with:
13+
engine: cruby
14+
min_version: 2.7
15+
build:
16+
needs: ruby-versions
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
22+
exclude:
23+
- ruby: head
24+
os:
25+
- ubuntu-latest
26+
name: Ruby ${{ matrix.ruby }} ${{ matrix.os }}
27+
steps:
28+
- uses: actions/checkout@v6
29+
- uses: ruby/setup-ruby@v1
30+
with:
31+
ruby-version: ${{ matrix.ruby }}
32+
- name: unit testing
33+
run: |
34+
bundle install --jobs 4 --retry 3
35+
bundle exec rake spec

fluent-stackprof.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
1717
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
1818
spec.require_paths = ["lib"]
1919

20-
spec.add_development_dependency "bundler", "~> 1.5"
20+
spec.add_development_dependency "bundler"
2121
spec.add_development_dependency "rake"
2222
spec.add_development_dependency "rspec"
2323
end

0 commit comments

Comments
 (0)