Sha256: 24391944dcc6efe0a746d4887943b8ada3a4e06f6078492099b62a016b10deb4

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

name: Test Exporter

on:
  push:
  pull_request:
  schedule:
    - cron: '0 0 * * 0' # weekly

jobs:
  build:
    runs-on: ubuntu-latest
    name: Ruby ${{ matrix.ruby }}
    strategy:
      matrix:
        ruby: ["2.7", "2.6", "2.5"]
    steps:
      - uses: actions/checkout@master
        with:
          fetch-depth: 1
      - uses: actions/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
      - uses: actions/cache@v2
        with:
          path: vendor/bundle
          key: ${{ runner.os }}-${{ matrix.ruby }}-gems-v2-${{ hashFiles('**/Gemfile.lock') }}
          restore-keys: |
            ${{ runner.os }}-${{ matrix.ruby }}-gems-v2-
      - name: Setup gems
        run: |
          gem install bundler
          # for Ruby <= 2.6 , details https://github.com/rubygems/rubygems/issues/3284
          gem update --system 3.0.8 && gem update --system
          bundle config path vendor/bundle
          bundle install --jobs 4
          bundle exec appraisal install
      - name: Rubocop
        run: bundle exec rubocop
      - name: install gems
        run: bundle exec appraisal bundle
      - name: Run tests
        run: bundle exec appraisal rake

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
prometheus_exporter-0.8.0 .github/workflows/ci.yml
prometheus_exporter-0.7.0 .github/workflows/ci.yml