-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Schedule superglue on Rails main (#58)
We want to be prepared for possible breaking changes when Superglue uses the next version of rails. Instead of running this as part of our CI on every contribution, we can run Superglue against Rails main on a schedule. The job is scheduled to run on every Thursday.
- Loading branch information
Stefanni Brasil
authored
May 8, 2024
1 parent
43da6b2
commit 560c73d
Showing
2 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Scheduled Rails Main | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * 4' | ||
|
||
jobs: | ||
build: | ||
name: Rails main | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.3' | ||
bundler-cache: true | ||
- name: Using Gemfile | ||
working-directory: ./superglue_rails | ||
run: | | ||
mv -f Gemfile.main ./Gemfile | ||
- name: Bundle install | ||
working-directory: ./superglue_rails | ||
run: bundle install | ||
- name: Run unit test | ||
working-directory: ./superglue_rails | ||
run: bundle exec rake test | ||
- name: Run acceptance test | ||
working-directory: ./superglue_rails | ||
run: BUNDLE_GEMFILE='' ruby -Ilib:test test/acceptance/superglue_installation_acceptance.rb |