Skip to content

Commit

Permalink
Use bundler cache in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
scarroll32 committed Jun 12, 2022
1 parent 9178758 commit 1aae303
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install
bundler-cache: true
- name: Run tests
run: bundle exec rspec

Expand All @@ -56,15 +55,14 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Startup MySQL
run: |
sudo systemctl start mysql.service
- name: Setup databases
run: |
mysql --user=root --password=root --host=127.0.0.1 -e 'create database ransack collate utf8_general_ci;';
mysql --user=root --password=root --host=127.0.0.1 -e 'use ransack;show variables like "%character%";show variables like "%collation%";';
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rspec

Expand Down Expand Up @@ -107,11 +105,10 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Setup databases
run: |
psql -h localhost -p 5432 -W postgres -c 'create database ransack;' -U postgres;
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rspec

Expand All @@ -123,8 +120,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
- name: Install dependencies
run: bundle install
bundler-cache: true
- name: Run bug report templates
run: |
ruby bug_report_templates/test-ransacker-arel-present-predicate.rb
Expand Down

0 comments on commit 1aae303

Please sign in to comment.