Test ruby 3.1, 3.2 & 3.3 #2
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: build | |
| on: | |
| push: | |
| branches: | |
| - '**/*' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: build | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| ruby-version: [3.1, 3.2, 3.3] | |
| steps: | |
| # https://github.com/actions/checkout | |
| - name: Checkout the repository | |
| uses: actions/checkout@v4 | |
| # https://github.com/ruby/setup-ruby | |
| - name: Install ruby & dependencies | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby-version }} | |
| bundler-cache: true | |
| - name: Run automated tests & measure code coverage | |
| run: | | |
| bundle exec rspec | |
| - name: Analyze source code | |
| run: | | |
| bundle exec rubocop | |
| - name: Ensure there are no uncommitted changes | |
| run: | | |
| git status --porcelain | |
| test -z "$(git status --porcelain)" |