.github/workflows/main.yml in skunk-0.5.2 vs .github/workflows/main.yml in skunk-0.5.3

- old
+ new

@@ -1,104 +1,56 @@ -# .github/workflows/ci.yml +# .github/workflows/main.yml name: CI -on: - push: - branches: - - main - pull_request: - branches: - - main +on: [push, pull_request] jobs: test-ruby-2-4-x: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: Setup Ruby + - uses: actions/checkout@v2 + - name: Setup Ruby 2.4 uses: ruby/setup-ruby@v1 with: ruby-version: 2.4 - bundler-cache: true - name: Build and run tests env: BUNDLE_GEMFILE: "Gemfile-Ruby-2-4" run: | - gem install bundler + gem install bundler -v 2.3 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: actions/checkout@v2 + - name: Setup Ruby 2.5 uses: ruby/setup-ruby@v1 with: ruby-version: 2.5 - bundler-cache: true - name: Build and run tests + env: + BUNDLE_GEMFILE: "Gemfile-Ruby-2-5" run: | - gem install bundler + gem install bundler -v 2.3.26 bundle install --jobs 4 --retry 3 bundle exec rake - test-ruby-2-6-x: - runs-on: ubuntu-latest + test-ruby: + runs-on: ${{ matrix.os }}-latest + strategy: + matrix: + os: [ubuntu] + ruby-version: ["2.6", "2.7", "3.0", "3.1", "3.2"] steps: - - uses: actions/checkout@v1 - - name: Setup Ruby + - uses: actions/checkout@v2 + - name: Setup Ruby ${{ matrix.ruby-version }} uses: ruby/setup-ruby@v1 with: - ruby-version: 2.6 + ruby-version: ${{ matrix.ruby-version }} bundler-cache: true - name: Build and run tests run: | - gem install bundler + gem install bundler -v 2.4.6 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 - test-ruby-3-1-x: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Setup Ruby - uses: ruby/setup-ruby@v1 - with: - ruby-version: 3.1 - bundler-cache: true - - name: Build and run tests - run: | - gem install bundler - bundle install --jobs 4 --retry 3 - bundle exec rake \ No newline at end of file