Skip to content

Commit

Permalink
Setup GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibuya committed Sep 17, 2023
1 parent 53ce34a commit cac3357
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 12 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test

on: [push, pull_request]

jobs:
test:
name: RSpec
strategy:
fail-fast: false
matrix:
ruby: [ '2.2', '3.2', jruby ]
runs-on: ubuntu-20.04
env:
JRUBY_OPTS: --debug
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run RSpec
run: bundle exec rake spec
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/_yardoc/
/coverage/
/doc/
/log/
/pkg/
/spec/reports/
/tmp/
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions spec/locale_loading_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
expected_translations = <<-EOS.gsub(/^ */, "")
In French: Impossible de redimensionner l'image.
In Spanish: no pudo ser procesado
In Japanese: translation missing: ja.errors.messages.carrierwave_processing_error
In Japanese: Translation missing: ja.errors.messages.carrierwave_processing_error
EOS

expect(translations).to eq(expected_translations)
Expand All @@ -43,8 +43,8 @@
it "loads only this locale" do
expected_translations = <<-EOS.gsub(/^ */, "")
In French: Impossible de redimensionner l'image.
In Spanish: translation missing: es.errors.messages.carrierwave_processing_error
In Japanese: translation missing: ja.errors.messages.carrierwave_processing_error
In Spanish: Translation missing: es.errors.messages.carrierwave_processing_error
In Japanese: Translation missing: ja.errors.messages.carrierwave_processing_error
EOS

expect(translations).to eq(expected_translations)
Expand Down

0 comments on commit cac3357

Please sign in to comment.