Sha256: 488f75db536c892bea51c702423dc803ec0bfadff47b4c87646753630cdd9c26

Contents?: true

Size: 1.4 KB

Versions: 10

Compression:

Stored size: 1.4 KB

Contents

name: Ruby

on: [push]

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.2
          bundler-cache: true

      - name: Run the default task
        run: |
          gem install bundler -v 2.2.15
          bundle install
          bundle exec rubocop
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: ["3.2"]
    steps:
      - uses: actions/checkout@v2

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

      - name: Install deps
        run: |
          gem install bundler -v 2.2.15
          bundle install

      - name: Run tests
        run: bundle exec rspec
  publish:
    runs-on: ubuntu-latest
    needs:
      - lint
      - test
    if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
    steps:
      - uses: actions/checkout@v2

      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.2
          bundler-cache: true

      - name: Build gem
        run: gem build

      - name: Create credentials
        run: |
          mkdir ~/.gem
          cat << EOF > ~/.gem/credentials
          ---
          :rubygems_api_key: ${{ secrets.RUBYGEMS_TOKEN }}
          EOF
          chmod 0600 /home/runner/.gem/credentials

      - name: Push gem
        run: gem push *gem

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
async-tools-0.1.10 .github/workflows/main.yml
async-tools-0.1.9 .github/workflows/main.yml
async-tools-0.1.8 .github/workflows/main.yml
async-tools-0.1.7 .github/workflows/main.yml
async-tools-0.1.6 .github/workflows/main.yml
async-tools-0.1.5 .github/workflows/main.yml
async-tools-0.1.4 .github/workflows/main.yml
async-tools-0.1.3 .github/workflows/main.yml
async-tools-0.1.2 .github/workflows/main.yml
async-tools-0.1.1 .github/workflows/main.yml