CI against for Ruby 4.0 #162
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: | |
| - "2.6" | |
| - "2.7" | |
| - "3.0" | |
| - "3.1" | |
| - "3.2" | |
| - "3.3" | |
| - "3.4" | |
| - "4.0" | |
| gemfile: | |
| - faraday_2 | |
| env: | |
| BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: "true" | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| - name: bundle update | |
| run: | | |
| set -xe | |
| bundle config path vendor/bundle | |
| bundle update --jobs $(nproc) --retry 3 | |
| - run: bundle exec rspec | |
| - name: Coveralls Parallel | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| flag-name: run-${{ matrix.ruby }}-${{ matrix.gemfile }} | |
| parallel: true | |
| - run: bundle exec rubocop | |
| yard: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: "true" | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ruby | |
| bundler-cache: true | |
| - name: bundle update | |
| run: | | |
| set -xe | |
| bundle config path vendor/bundle | |
| bundle update --jobs $(nproc) --retry 3 | |
| - name: yard generating test | |
| run: | | |
| set -xe | |
| bundle exec yard | |
| ls -ld doc/ | |
| finish: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Coveralls Finished | |
| uses: coverallsapp/github-action@master | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| parallel-finished: true |