gem: update google-protobuf to v4 #100
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 and test | |
| on: | |
| push: | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| permissions: | |
| packages: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Ruby 2.5 | |
| uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0 | |
| - name: Install bundler explicitly for Ruby 2.5 | |
| run: | | |
| gem install bundler -v 2.3.27 | |
| bundle _2.3.27_ install | |
| - name: "Linting" | |
| run: "bundle exec rake lint:check" | |
| test: | |
| name: Unit testing with Ruby version ${{ matrix.ruby-version }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| packages: write | |
| contents: read | |
| strategy: | |
| matrix: | |
| ruby-version: | |
| - '3.1' | |
| - '3.0' | |
| - '2.7' | |
| - '2.6' | |
| - '2.5' | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0 | |
| with: | |
| bundler-cache: true | |
| ruby-version: ${{ matrix.ruby-version }} | |
| - name: "Unit test" | |
| run: "bundle exec rake test:unit" | |
| build: | |
| name: Building gem with Ruby version ${{ matrix.ruby-version }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| packages: write | |
| contents: read | |
| strategy: | |
| matrix: | |
| ruby-version: | |
| - '3.1' | |
| - '3.0' | |
| - '2.7' | |
| - '2.6' | |
| - '2.5' | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0 | |
| with: | |
| bundler-cache: true | |
| ruby-version: ${{ matrix.ruby-version }} | |
| - name: "Building gem" | |
| run: "bundle exec rake build" |