Sha256: b3e45f92d543aa73d9e21311cedca94aedc738b7976fd4e8776ad44977948c17

Contents?: true

Size: 1.82 KB

Versions: 10

Compression:

Stored size: 1.82 KB

Contents

name: Test and Deploy
on: [push, pull_request]
jobs:
  rubocop:
    strategy:
      matrix:
        ruby-version: [2.6.3, 2.6.6, 2.7.1]
    runs-on: [ubuntu-latest]
    steps:
      - uses: actions/checkout@v2
        with:
          persist-credentials: false
          fetch-depth: 0
      - name: Ruby Setup and Bundle
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby-version }}
          bundler-cache: true
      - run: bundle exec rubocop
  rspec:
    strategy:
      matrix:
        ruby-version: [2.6.3, 2.6.6, 2.7.1]
    runs-on: [ubuntu-latest]
    steps:
      - uses: actions/checkout@v2
        with:
          persist-credentials: false
          fetch-depth: 0
      - name: Ruby Setup and Bundle
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby-version }}
          bundler-cache: true
      - name: rspec and report to coveralls
        env:
          COVERALLS_REPO_TOKEN: ${{ github.event_name == 'push' && secrets.COVERALLS_REPO_TOKEN }}
        run: bundle exec rspec --order rand
  publish:
    runs-on: ubuntu-latest
    needs: ['rubocop', 'rspec']
    if: startsWith(github.ref, 'refs/tags/')
    steps:
      - name: Checkout
        uses: actions/checkout@v2
        with:
          persist-credentials: false
          fetch-depth: 0
      - name: Ruby Setup and Bundle
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.6.6
          bundler-cache: true
      - name: Publish to RubyGems
        run: |
          mkdir -p $HOME/.gem
          touch $HOME/.gem/credentials
          chmod 0600 $HOME/.gem/credentials
          printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
          gem build *.gemspec
          gem push *.gem
        env:
          GEM_HOST_API_KEY: "${{ secrets.RUBY_GEM_KEY }}"

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
ledger_sync-quickbooks_online-0.4.0 .github/workflows/gem-workflow.yml
ledger_sync-quickbooks_online-0.3.1 .github/workflows/gem-workflow.yml
ledger_sync-quickbooks_online-0.3.0 .github/workflows/gem-workflow.yml
ledger_sync-quickbooks_online-0.2.6 .github/workflows/gem-workflow.yml
ledger_sync-quickbooks_online-0.2.5 .github/workflows/gem-workflow.yml
ledger_sync-quickbooks_online-0.2.4 .github/workflows/gem-workflow.yml
ledger_sync-quickbooks_online-0.2.2 .github/workflows/gem-workflow.yml
ledger_sync-quickbooks_online-0.2.1 .github/workflows/gem-workflow.yml
ledger_sync-quickbooks_online-0.2.0 .github/workflows/gem-workflow.yml
ledger_sync-netsuite-0.1.1 .github/workflows/gem-workflow.yml