Sha256: ad024a46dc1431a68d5775781b84e4a0f35e0a95744143fb07bb0d5401f16b2a

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

name: Run tests

on: [push, pull_request]

jobs:
  test:
    strategy:
      matrix:
        ruby: [2.4, 2.5, 2.6, 2.7, 3.0]
    continue-on-error: false
      
    runs-on: ubuntu-latest    
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
    - name: Install dependencies
      run: bundle install
    - name: Run tests
      run: bundle exec rake
    - name: Check RBI is up-to-date
      run: ./ci/check_rbi.sh

  # Deploy documentation to GitHub Pages, if this is a push to master and the tests passed
  deploy-docs:
    if: ${{ github.ref == 'refs/heads/master' }}
    
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: 2.7
    - name: Install dependencies
      run: bundle install
    - name: Build documentation
      run: bundle exec yard
    - name: Deploy to GitHub Actions
      uses: JamesIves/github-pages-deploy-action@3.7.1
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        branch: gh-pages
        folder: doc

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
parlour-7.0.0 .github/workflows/ruby.yml
parlour-6.0.1 .github/workflows/ruby.yml
parlour-6.0.0 .github/workflows/ruby.yml