Skip to content

Commit

Permalink
ci: rename build to ci workflow (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancyq authored Oct 3, 2024
2 parents 70b4232 + 3e12cbd commit 3665a77
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 31 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/build.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 12 * * 5'

jobs:
tests:
name: "RSpec / Ruby ${{ matrix.ruby-version }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version:
- "3.1"
- "3.2"
- "3.3"
- "head"

timeout-minutes: 3

steps:
- uses: actions/checkout@v4

# https://bundler.io/blog/2018/01/17/making-gem-development-a-little-better.html
- run: rm Gemfile.lock

- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
rubygems: 3.3.27 # last version to support Ruby 2.5
bundler: latest
bundler-cache: true

- run: bundle exec rake spec
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ Bug reports and pull requests are welcome on GitHub at [https://github.com/ryanc

[rubygems_badge]: https://img.shields.io/gem/v/mime_actor.svg
[rubygems]: https://rubygems.org/gems/mime_actor
[ci_badge]: https://github.com/ryancyq/mime_actor/actions/workflows/build.yml/badge.svg
[ci_workflows]: https://github.com/ryancyq/mime_actor/actions/workflows/build.yml
[ci_badge]: https://github.com/ryancyq/mime_actor/actions/workflows/ci.yml/badge.svg
[ci_workflows]: https://github.com/ryancyq/mime_actor/actions/workflows/ci.yml
[coverage_badge]: https://codecov.io/gh/ryancyq/mime_actor/graph/badge.svg?token=4C091RHXC3
[coverage]: https://codecov.io/gh/ryancyq/mime_actor
[maintainability_badge]: https://api.codeclimate.com/v1/badges/06689606dc3f3945dc1b/maintainability
Expand Down
3 changes: 2 additions & 1 deletion spec/mime_actor/stage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@

it "disallows instance writter" do
expect { klazz.new.raise_on_actor_error = true }.to raise_error(
NoMethodError, %r{undefined method `raise_on_actor_error='}
NoMethodError,
%r{undefined method [`']raise_on_actor_error=' for (#<|an instance of)}
)
end
end
Expand Down

0 comments on commit 3665a77

Please sign in to comment.