Skip to content

Commit 80f349e

Browse files
committed
Refactor CI and release workflows to disable bundler caching and ensure bundle install is executed
Remove example controller and view files to streamline the project
1 parent b0f3092 commit 80f349e

File tree

5 files changed

+19
-316
lines changed

5 files changed

+19
-316
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@ jobs:
99
timeout-minutes: 10
1010
name: Lint
1111
runs-on: ubuntu-latest
12+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
1213

1314
steps:
1415
- uses: actions/checkout@v4
1516

1617
- name: Set up Ruby
1718
uses: ruby/setup-ruby@v1
1819
with:
19-
bundler-cache: true
20+
bundler-cache: false
21+
22+
- run: |
23+
bundle install
2024
2125
- name: Run lints
2226
run: ./scripts/lint
@@ -25,14 +29,18 @@ jobs:
2529
timeout-minutes: 10
2630
name: Test
2731
runs-on: ubuntu-latest
32+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
2833

2934
steps:
3035
- uses: actions/checkout@v4
3136

3237
- name: Set up Ruby
3338
uses: ruby/setup-ruby@v1
3439
with:
35-
bundler-cache: true
40+
bundler-cache: false
41+
42+
- run: |
43+
bundle install
3644
3745
- name: Run tests
3846
run: ./scripts/test
@@ -41,14 +49,18 @@ jobs:
4149
timeout-minutes: 10
4250
name: Documentation
4351
runs-on: ubuntu-latest
52+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
4453

4554
steps:
4655
- uses: actions/checkout@v4
4756

4857
- name: Set up Ruby
4958
uses: ruby/setup-ruby@v1
5059
with:
51-
bundler-cache: true
60+
bundler-cache: false
61+
62+
- run: |
63+
bundle install
5264
5365
- name: Generate documentation
5466
run: bundle exec yard doc

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ jobs:
1515
- name: Set up Ruby
1616
uses: ruby/setup-ruby@v1
1717
with:
18-
bundler-cache: true
18+
bundler-cache: false
19+
20+
- run: |
21+
bundle install
1922
2023
- name: Publish gem
2124
run: bash ./bin/publish-gem

examples/controller_example.rb

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

examples/imagekit.rb

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

examples/view_examples.html.erb

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

0 commit comments

Comments
 (0)