Sha256: 62908a03a9e000665141545777b26d5718dea1d128ff6f6681ed26b3cd2d0760

Contents?: true

Size: 1.98 KB

Versions: 14

Compression:

Stored size: 1.98 KB

Contents

---
name: Continuous Integration
on:
  push:
    branches-ignore:
    - refs/tags/*_staging
    - refs/tags/*_production
jobs:
  build:
    runs-on: ubuntu-18.04
    steps:
    - name: Checkout branch
      uses: actions/checkout@v2
    - name: Extract branch name
      shell: bash
      run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
      id: extract_branch
    - name: Install Linux dependencies
      run: sudo apt-get update -qq && sudo apt-get install -y libsqlite3-dev
    - name: Set up Ruby
      uses: actions/setup-ruby@v1.1.1
      with:
        ruby-version: 2.6.6
    - name: Cache gems
      uses: actions/cache@v1
      with:
        path: vendor/bundle
        key: "${{ runner.OS }}-gem-cache-${{ hashFiles('**/dry-monads-sorbet.gemspec')
          }}"
        restore-keys: "${{ runner.OS }}-gem-cache-\n"
    - name: Install bundler
      run: (bundler -v | grep "2.1.4") || gem install bundler:2.1.4
    - name: Install gems
      run: bundle install --jobs $(nproc) --retry 3 --without metrics --path vendor/bundle
    - name: Create cache directory
      run: mkdir -p tmp/cache
    - name: Run RSpec test suite
      run: bundle exec rspec spec
      env:
        METRICS: '1'
    - name: Post to Slack if build fails
      if: failure() && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/stable')
      uses: pullreminders/slack-action@master
      env:
        SLACK_BOT_TOKEN: "${{ secrets.SLACK_BOT_TOKEN }}"
      with:
        args: '{\"channel\":\"C33574SJJ\",\"text\":\"* ${{ github.repository }} BUILD
          FAILURE*\", \"attachments\": [{ \"fallback\": \"Failure summary\", \"color\":
          \"#ff0000\", \"fields\": [{\"title\": \"Branch\", \"value\":\"${{ steps.extract_branch.outputs.branch
          }}\"}, {\"title\": \"Who broke it\", \"value\":\"${{ github.actor }}\"},
          { \"title\": \"Build output\", \"value\": \"https://github.com/${{ github.repository
          }}/commit/${{ github.sha }}/checks\", \"short\": false }]}]}'

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dry-monads-sorbet-1.1.5 .github/workflows/ci.yml
dry-monads-sorbet-1.1.4 .github/workflows/ci.yml
dry-monads-sorbet-1.1.3 .github/workflows/ci.yml
dry-monads-sorbet-1.1.2 .github/workflows/ci.yml
dry-monads-sorbet-1.1.1 .github/workflows/ci.yml
dry-monads-sorbet-1.1.0 .github/workflows/ci.yml
dry-monads-sorbet-1.1.0.pre.13 .github/workflows/ci.yml
dry-monads-sorbet-1.1.0.pre.12 .github/workflows/ci.yml
dry-monads-sorbet-1.1.0.pre.11 .github/workflows/ci.yml
dry-monads-sorbet-1.1.0.pre.10 .github/workflows/ci.yml
dry-monads-sorbet-1.1.0.pre.9 .github/workflows/ci.yml
dry-monads-sorbet-1.1.0.pre.8 .github/workflows/ci.yml
dry-monads-sorbet-1.1.0.pre.7 .github/workflows/ci.yml
dry-monads-sorbet-1.1.0.pre.6 .github/workflows/ci.yml