Skip to content

Commit

Permalink
Migrate to github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jho406 committed Apr 7, 2024
1 parent 89bce09 commit 4c6e908
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 63 deletions.
62 changes: 0 additions & 62 deletions .circleci/config.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build
on:
push:
pull_request:
schedule:
- cron: '* * * * 1'
workflow_dispatch:

jobs:
build:
name: Ruby ${{ matrix.ruby }}. Rails ${{ matrix.version }}
strategy:
fail-fast: false
matrix:
ruby: ['3.3', '3.2', '3.1']
version: ['61', 70', '71', 'main']

runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Setup project
run: |
mv Gemfile.${{ matrix.version }} Gemfile
bundle install
bundle update
- name: Run standard
run: bundle exec rake standard
- name: Run test
run: bundle exec rake test

File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Gemfile.rails60 → Gemfile.main
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ gemspec

gem "rspec"
gem "byebug"
gem "rails", "~> 6.0.0"
gem "rails", git: 'https://github.com/rails/rails', ref: 'main'
gem "standard", group: [:development, :test]

0 comments on commit 4c6e908

Please sign in to comment.