Sha256: f19cda45a0ffabe5337bf025d5fc7df33a942f333f4c16956e40b750922b8462

Contents?: true

Size: 797 Bytes

Versions: 11

Compression:

Stored size: 797 Bytes

Contents

name: CI

on:
  pull_request:
  push:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3

      - name: Setup ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.2'
          bundler-cache: true

      - name: Rubocop
        run: bundle exec rubocop

      - name: Rspec
        run: bundle exec rspec spec

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

    steps:
      - uses: actions/checkout@v3

      - 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

11 entries across 11 versions & 1 rubygems

Version Path
rubocop-discourse-3.8.1 .github/workflows/ci.yml
rubocop-discourse-3.7.1 .github/workflows/ci.yml
rubocop-discourse-3.7.0 .github/workflows/ci.yml
rubocop-discourse-3.6.1 .github/workflows/ci.yml
rubocop-discourse-3.6.0 .github/workflows/ci.yml
rubocop-discourse-3.5.1 .github/workflows/ci.yml
rubocop-discourse-3.5.0 .github/workflows/ci.yml
rubocop-discourse-3.4.1 .github/workflows/ci.yml
rubocop-discourse-3.4.0 .github/workflows/ci.yml
rubocop-discourse-3.3.0 .github/workflows/ci.yml
rubocop-discourse-3.2.0 .github/workflows/ci.yml