.github/workflows/test.yml in flexdot-2.0.0 vs .github/workflows/test.yml in flexdot-3.0.0
- old
+ new
@@ -5,22 +5,30 @@
jobs:
test:
name: Test on ruby ${{ matrix.ruby_version }}
runs-on: ubuntu-latest
+ # Run this build only on either pull request or push.
+ if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
+
strategy:
matrix:
ruby_version:
- - 2.5.x
- - 2.6.x
- - 2.7.x
+ - 2.5
+ - 2.6
+ - 2.7
+ - 3.0
steps:
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v2
+
- name: Set up Ruby ${{ matrix.ruby_version }}
- uses: actions/setup-ruby@v1
+ uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
- - name: Build and test with Rake
+
+ - name: Install dependencies
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- bundle exec rake test
+
+ - name: Run tests
+ run: bundle exec rake test