Sha256: dd32410ba12addc97441249b5783dab77167ee3bacdc780e99d85c3338f6be74

Contents?: true

Size: 972 Bytes

Versions: 18

Compression:

Stored size: 972 Bytes

Contents

name: CI

on:
  pull_request:
  push:
    branches:
      - master
      - main

jobs:
  build:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        ruby:
          - 2.5
          - 2.6
          - 2.7
          - 3.0

    steps:
      - uses: actions/checkout@v2

      - name: Setup ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true

      - name: Lint
        run: bundle exec rubocop

      - name: Tests
        run: bundle exec rake test

  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-beta
        env:
          RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
          GIT_EMAIL: team@discourse.org
          GIT_NAME: discoursebot

Version data entries

18 entries across 18 versions & 5 rubygems

Version Path
config_skeleton-2.2.0 .github/workflows/ci.yml
discourse_api-0.48.1 .github/workflows/ci.yml
discourse_theme-0.7.1 .github/workflows/ci.yml
discourse_api-0.48.0 .github/workflows/ci.yml
service_skeleton-2.1.0 .github/workflows/ci.yml
discourse_theme-0.7.0 .github/workflows/ci.yml
discourse_theme-0.6.0 .github/workflows/ci.yml
discourse_api-0.47.0 .github/workflows/ci.yml
discourse_theme-0.5.2 .github/workflows/ci.yml
discourse_theme-0.5.1 .github/workflows/ci.yml
discourse_theme-0.5.0 .github/workflows/ci.yml
discourse_api-0.46.0 .github/workflows/ci.yml
discourse_theme-0.4.1 .github/workflows/ci.yml
loggerstash-1.1.0 .github/workflows/ci.yml
discourse_api-0.45.1 .github/workflows/ci.yml
config_skeleton-2.1.0 .github/workflows/ci.yml
service_skeleton-2.0.2 .github/workflows/ci.yml
service_skeleton-2.0.1 .github/workflows/ci.yml