Fix Dockerfile for Ruby 4.0 - install build deps for nokogiri #415
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: CI | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| branches: [ master ] | |
| push: | |
| branches: [ master ] | |
| schedule: | |
| - cron: '0 1 * * *' | |
| permissions: | |
| contents: read | |
| jobs: | |
| specs: | |
| timeout-minutes: 15 | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: | |
| - '4.0' | |
| - '3.4' | |
| - '3.3' | |
| - '3.2' | |
| include: | |
| - ruby: '4.0' | |
| coverage: 'true' | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@ae195bbe749a7cef685ac729197124a48305c1cb # v1.276.0 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| bundler-cache: true | |
| bundler: 'latest' | |
| - name: Install latest bundler | |
| run: | | |
| gem install bundler --no-document | |
| bundle config set without 'tools benchmarks docs' | |
| - name: Bundle install | |
| run: bundle install --jobs 4 --retry 3 | |
| - name: Run all tests | |
| env: | |
| GITHUB_COVERAGE: ${{ matrix.coverage }} | |
| run: bin/rspecs | |
| yard-lint: | |
| timeout-minutes: 5 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@ae195bbe749a7cef685ac729197124a48305c1cb # v1.276.0 | |
| with: | |
| ruby-version: '4.0.0' | |
| bundler-cache: true | |
| - name: Run yard-lint | |
| run: bundle exec yard-lint lib/ | |
| ci-success: | |
| name: CI Success | |
| runs-on: ubuntu-latest | |
| if: always() | |
| needs: | |
| - specs | |
| - yard-lint | |
| steps: | |
| - name: Check all jobs passed | |
| if: | | |
| contains(needs.*.result, 'failure') || | |
| contains(needs.*.result, 'cancelled') || | |
| contains(needs.*.result, 'skipped') | |
| run: exit 1 | |
| - run: echo "All CI checks passed!" |