Sha256: 8e5808ee5bbac6aa9a05a53a2137abd8b51f0b3722217efa797177e8aee2c106

Contents?: true

Size: 937 Bytes

Versions: 3

Compression:

Stored size: 937 Bytes

Contents

name: CI

on:
  pull_request:
  push:
    branches:
      - master
      - main
jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1

      - name: Setup ruby
        uses: actions/setup-ruby@v1
        with:
          ruby-version: 2.6

      - name: Setup bundler
        run: gem install bundler

      - name: Setup gems
        run: bundle install

      - name: Rubocop
        run: bundle exec rubocop

      - name: Rspec
        run: bundle exec rspec spec

  publish:
    if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
    needs: build
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: Release Gem
        uses: discourse/publish-rubygems-action@v2
        env:
          RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
          GIT_EMAIL: team@discourse.org
          GIT_NAME: discoursebot

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubocop-discourse-3.0 .github/workflows/ci.yml
rubocop-discourse-2.6.0 .github/workflows/ci.yml
rubocop-discourse-2.5.0 .github/workflows/ci.yml