.github/workflows/main.yml in skunk-0.4.2 vs .github/workflows/main.yml in skunk-0.5.0
- old
+ new
@@ -1,18 +1,88 @@
# .github/workflows/ci.yml
name: CI
-on: [push, pull_request]
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - main
+
jobs:
- test:
+ test-ruby-2-4-x:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Ruby
- uses: actions/setup-ruby@v1
+ uses: ruby/setup-ruby@v1
with:
- ruby-version: 2.6.x
+ ruby-version: 2.4
+ bundler-cache: true
+ - name: Build and run tests
+ env:
+ BUNDLE_GEMFILE: "Gemfile-Ruby-2-4"
+ run: |
+ gem install bundler
+ bundle install --jobs 4 --retry 3
+ bundle exec rake
+ test-ruby-2-5-x:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: Setup Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: 2.5
+ bundler-cache: true
+ - name: Build and run tests
+ run: |
+ gem install bundler
+ bundle install --jobs 4 --retry 3
+ bundle exec rake
+ test-ruby-2-6-x:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: Setup Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: 2.6
+ bundler-cache: true
+ - name: Build and run tests
+ run: |
+ gem install bundler
+ bundle install --jobs 4 --retry 3
+ bundle exec rake
+ test-ruby-2-7-x:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: Setup Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: 2.7
+ bundler-cache: true
+ - name: Build and run tests
+ run: |
+ gem install bundler
+ bundle install --jobs 4 --retry 3
+ bundle exec rake
+ test-ruby-3-0-x:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: Setup Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: 3.0
+ bundler-cache: true
- name: Build and run tests
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rake