Sha256: a4ad37dfc5538e0fe053a32f1f8aed69fb25eb81193cf54d61486c4d9f9314ad

Contents?: true

Size: 1.12 KB

Versions: 8

Compression:

Stored size: 1.12 KB

Contents

name: CI

on:
  push:
    branches:
      - main
  pull_request:
  schedule:
    - cron: "0 0 * * 0" # weekly

jobs:
  build:
    runs-on: ubuntu-latest
    name: Ruby ${{ matrix.ruby }} AR ${{ matrix.activerecord }}
    timeout-minutes: 10

    env:
      BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/ar_${{ matrix.activerecord }}.gemfile

    strategy:
      fail-fast: false
      matrix:
        ruby: ['2.6', '2.7', '3.0', '3.1']
        activerecord: [60, 61]

    steps:
      - uses: actions/checkout@v2

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

      - name: Rubocop
        run: bundle exec rubocop

      - name: Run tests
        run: bundle exec rake

  publish:
    if: github.event_name == 'push' && github.ref == 'refs/heads/main'
    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

8 entries across 8 versions & 1 rubygems

Version Path
prometheus_exporter-2.0.7 .github/workflows/ci.yml
prometheus_exporter-2.0.6 .github/workflows/ci.yml
prometheus_exporter-2.0.5 .github/workflows/ci.yml
prometheus_exporter-2.0.4 .github/workflows/ci.yml
prometheus_exporter-2.0.3 .github/workflows/ci.yml
prometheus_exporter-2.0.2 .github/workflows/ci.yml
prometheus_exporter-2.0.1 .github/workflows/ci.yml
prometheus_exporter-2.0.0 .github/workflows/ci.yml