Repository navigation
Boilerplate, CI (#3) #21
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
| # This workflow uses actions that are not certified by GitHub. | |
| # They are provided by a third-party and are governed by | |
| # separate terms of service, privacy policy, and support | |
| # documentation. | |
| # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake | |
| # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby | |
| # | |
| # Created: 15th August 2026 | |
| # Updated: 15th August 2026 | |
| # | |
| name: Ruby | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - dev | |
| - boilerplate | |
| - idiomatic | |
| - rc1 | |
| - rc2 | |
| - rc3 | |
| pull_request: | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - macos-latest | |
| - ubuntu-latest | |
| - windows-latest | |
| ruby-version: | |
| # - head | |
| - '3.4' | |
| - '3.3' | |
| - '3.2' | |
| - '3.1' | |
| - '3.0' | |
| - '2.7' | |
| - '2.6' | |
| include: | |
| - os: ubuntu-latest | |
| ruby-version: '2.5' | |
| - os: ubuntu-latest | |
| ruby-version: '2.4' | |
| - os: ubuntu-latest | |
| ruby-version: '2.0' | |
| - os: windows-latest | |
| ruby-version: mingw | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checking out code | |
| uses: actions/checkout@v4 | |
| - name: Remove Gemfile.lock | |
| run: rm -f Gemfile.lock | |
| - name: Set up Ruby v${{ matrix.ruby-version }} | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
| - name: Show Ruby version | |
| run: ruby -v | |
| - name: Run tests | |
| run: bundle exec rake test | |
| - name: Gem build and install smoke | |
| shell: bash | |
| run: | | |
| gem build libpath.gemspec | |
| gem install --local libpath-ruby-*.gem | |
| ruby -e "require 'libpath/version'; abort('VERSION missing') unless defined?(LibPath::VERSION); puts LibPath::VERSION" | |
| warnings: | |
| name: Warnings | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checking out code | |
| uses: actions/checkout@v4 | |
| - name: Remove Gemfile.lock | |
| run: rm -f Gemfile.lock | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.3' | |
| bundler-cache: true | |
| - name: Show Ruby version | |
| run: ruby -v | |
| - name: Run unit tests with warnings | |
| run: ./run_all_unit_tests.sh --lib --warnings |