Sha256: c9a8508dd7cf5fe7a5b7f01604bada13abba5152f0c283be3b1d625384a67907

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 KB

Contents

name: Build and test

on:
  push:


jobs:
  lint:
    name: Lint
    runs-on: ubuntu-latest
    permissions:
      packages: write
      contents: read

    steps:
      - uses: actions/checkout@v2
      - name: Set up Ruby 2.5
        uses: ruby/setup-ruby@v1
        with:
          bundler-cache: true
      - 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@v2
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        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@v2
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          bundler-cache: true
          ruby-version: ${{ matrix.ruby-version }}
      - name: "Building gem"
        run: "bundle exec rake build"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fluent-plugin-formatter-protobuf-0.5.0 .github/workflows/build-and-test.yml