Sha256: fc0de6c814d9222ca8f2cd867cc775a8be0c8f8d4367295b5762f600a2578f2b

Contents?: true

Size: 1.35 KB

Versions: 6

Compression:

Stored size: 1.35 KB

Contents

name: Rspec and Release

on:
  push:
  pull_request:
  workflow_dispatch:

jobs:
  rspec:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby 2.7.2
      uses: actions/setup-ruby@v1.1.2
      with:
        ruby-version: 2.7.2
    - name: Test with Rspec
      run: |
          gem install --no-document bundler
          bundle install --jobs 4 --retry 3
          bundle exec rspec --format documentation
  release:
    if: github.event_name == 'push'
    needs: rspec
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby 2.7.2
      uses: actions/setup-ruby@v1.1.2
      with:
        ruby-version: 2.7.2
    - name: Build with bundler
      run: |
          gem install --no-document bundler
          bundle config set deployment 'true'
          bundle config set without 'development test'
          bundle install --jobs 4 --retry 3
    - name: Zip
      run : |
        zip -r datadog_backup.zip ./*
    - name: Semantic Release
      id: semantic
      uses: cycjimmy/semantic-release-action@v2
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_TOKEN }}
      with:
        semantic_version: 17
        extra_plugins: |
          @semantic-release/changelog
          @semantic-release/git
          semantic-release-rubygem

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
datadog_backup-1.0.0.alpha.2 .github/workflows/rspec_and_release.yml
datadog_backup-1.0.0.alpha.1 .github/workflows/rspec_and_release.yml
datadog_backup-0.11.0 .github/workflows/rspec_and_release.yml
datadog_backup-0.10.3 .github/workflows/rspec_and_release.yml
datadog_backup-0.11.0.alpha.1 .github/workflows/rspec_and_release.yml
datadog_backup-0.10.2 .github/workflows/rspec_and_release.yml