Skip to content

Commit 019d5e3

Browse files
authored
Merge pull request #41 from Invoca/TECH-5070_declareschema_move_from_travis_to_github_workflows
TECH-5070: add initial declare_schema_build.yml workflow
2 parents 69164a2 + aaba1fe commit 019d5e3

File tree

3 files changed

+45
-37
lines changed

3 files changed

+45
-37
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
on: [push]
3+
4+
name: DeclareSchema Build
5+
6+
jobs:
7+
build:
8+
name: DeclareSchema Build
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
ruby: [ 2.4.5, 2.5.8, 2.6.5, 2.7.1 ]
13+
gemfile: [ gemfiles/rails_4.gemfile, gemfiles/rails_5.gemfile, gemfiles/rails_6.gemfile ]
14+
exclude:
15+
- { gemfile: gemfiles/rails_4.gemfile, ruby: 2.7.1 }
16+
- { gemfile: gemfiles/rails_5.gemfile, ruby: 2.4.5 }
17+
- { gemfile: gemfiles/rails_6.gemfile, ruby: 2.4.5 }
18+
env:
19+
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
20+
steps:
21+
- name: Checkout Branch
22+
id: checkout_branch
23+
uses: actions/checkout@v2
24+
- name: Setup Ruby
25+
id: setup_ruby
26+
uses: ruby/setup-ruby@v1
27+
with:
28+
bundler: 1.17.3
29+
ruby-version: ${{matrix.ruby}}
30+
- name: Remove Bundler 2
31+
id: remove_bundler_2
32+
if: ${{ matrix.ruby >= '2.6.5' }}
33+
run: |
34+
rm -f /opt/hostedtoolcache/Ruby/2.*/x64/lib/ruby/gems/2.*/specifications/default/bundler-2.*.gemspec
35+
gem install bundler:1.17.3 --force --default
36+
gem install bundler -v 1.17.3
37+
- name: Appraisals
38+
id: appraisals
39+
run: |
40+
bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle} --gemfile=${{ matrix.gemfile }}
41+
git config --global user.email "[email protected]"
42+
git config --global user.name "dummy"
43+
bundle exec rake test:prepare_testapp[force]
44+
bundle exec rake test:all < test_responses.txt

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212

1313
# appraisal
1414
gemfiles/*.lock
15+
.idea

.travis.yml

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

0 commit comments

Comments
 (0)