# this file is managed by dry-rb/devtools project name: ci on: push: paths: - .github/workflows/custom_ci.yml - lib/** - spec/** - Gemfile - "*.gemspec" jobs: tests-mri: runs-on: ubuntu-latest strategy: fail-fast: false matrix: ruby: ["2.6.x", "2.5.x", "2.4.x"] include: - ruby: "2.6.x" coverage: "true" steps: - uses: actions/checkout@v1 - name: Set up Ruby uses: actions/setup-ruby@v1 with: ruby-version: ${{matrix.ruby}} - name: Download test reporter if: "matrix.coverage == 'true'" run: | mkdir -p tmp/ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./tmp/cc-test-reporter chmod +x ./tmp/cc-test-reporter ./tmp/cc-test-reporter before-build - name: Bundle install run: | gem install bundler bundle install --jobs 4 --retry 3 --without tools docs benchmarks - name: Run all tests env: COVERAGE: ${{matrix.coverage}} CODACY_PROJECT_TOKEN: ${{secrets.CODACY_PROJECT_TOKEN}} CODACY_RUN_LOCAL: true run: bundle exec rake tests-others: runs-on: ubuntu-latest strategy: fail-fast: false matrix: image: ["jruby:9.2.8", "ruby:rc"] container: image: ${{matrix.image}} steps: - uses: actions/checkout@v1 - name: Install git run: | apt-get update apt-get install -y --no-install-recommends git - name: Bundle install run: | gem install bundler bundle install --jobs 4 --retry 3 --without tools docs benchmarks - name: Run all tests run: bundle exec rake