Sha256: 322dd10a0bba73bc5bcc31c4c7e7d2c5f617cbc1c2d5a2e52e7bd93ff1936427

Contents?: true

Size: 874 Bytes

Versions: 1

Compression:

Stored size: 874 Bytes

Contents

name: CI

on:
  pull_request:
  push:
    branches:
      - "v1_0"

jobs:
  build:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        ruby:
          - 2.5

    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/v1_0')
    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

1 entries across 1 versions & 1 rubygems

Version Path
service_skeleton-1.0.5 .github/workflows/ci.yml