Sha256: a3c2cd8169f24cb229bb00e41da6e178943cc3e53c9d60b9d4f668676becaba2

Contents?: true

Size: 1.53 KB

Versions: 9

Compression:

Stored size: 1.53 KB

Contents

---
name: Pipeline
on:
  push:
concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  build:
    name: Build
    runs-on: ubuntu-20.04
    strategy:
      matrix:
        ruby-version: [2.7.5, 3.0.3, 3.1.0]
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Set up Ruby ${{ matrix.ruby-version }}
        uses: ruby/setup-ruby@v1
        with:
          bundler-cache: true
          ruby-version: ${{ matrix.ruby-version }}
      - name: Lint
        run: bundle exec rubocop
      - name: Test
        run: bundle exec rspec

  # Separate `release` job from `build`, as we only want release to be run once
  # and not run for each ruby version in the matrix:
  release:
    name: Release
    if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
    needs: build
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          bundler-cache: true
      - name: Release the gem
        run: |
          mkdir -p ~/.gem
          cat << EOF > ~/.gem/credentials
          ---
          :github: Bearer ${GITHUB_TOKEN}
          :rubygems_api_key: ${RUBYGEMS_API_KEY}
          EOF
          chmod 0600 ~/.gem/credentials
          git config user.email "noreply@wealthsimple.com"
          git config user.name "Wolfbot"
          bundle exec rake release
        env:
          RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pheme-5.0.8 .github/workflows/main.yml
pheme-5.0.7 .github/workflows/main.yml
pheme-5.0.6 .github/workflows/main.yml
pheme-5.0.5 .github/workflows/main.yml
pheme-5.0.4 .github/workflows/main.yml
pheme-5.0.3 .github/workflows/main.yml
pheme-5.0.2 .github/workflows/main.yml
pheme-5.0.1 .github/workflows/main.yml
pheme-5.0.0 .github/workflows/main.yml