Sha256: 34cfecce790bacc288ead652a3a1db2b85d0d7c3e7acb43c3001ed2a89002584

Contents?: true

Size: 1.97 KB

Versions: 2

Compression:

Stored size: 1.97 KB

Contents

# Auto-generated by Cimas: Do not edit it manually!
# See https://github.com/metanorma/cimas
name: rake

on:
  push:
    branches: [ master, main ]
    tags: [ v* ]
  pull_request:

jobs:
  rake:
    name: Test on Ruby ${{ matrix.ruby }} ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    continue-on-error: ${{ matrix.experimental }}
    strategy:
      fail-fast: false
      matrix:
        ruby: [ '2.7', '2.6', '2.5', '2.4' ]
        os: [ ubuntu-latest, windows-latest, macos-latest ]
        experimental: [ false ]
        include:
          - ruby: '3.0'
            os: 'ubuntu-latest'
            experimental: true
          - ruby: '3.0'
            os: 'windows-latest'
            experimental: true
          - ruby: '3.0'
            os: 'macos-latest'
            experimental: true
    steps:
      - uses: actions/checkout@master

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

      - name: install plantuml ubuntu
        if: matrix.os == 'ubuntu-latest'
        uses: nick-invision/retry@v1
        with:
          polling_interval_seconds: 5
          timeout_minutes: 5
          max_attempts: 3
          command: >
            sudo apt-get update -y && sudo bash -c 
            "curl -L https://github.com/metanorma/plantuml-install/raw/master/ubuntu.sh | bash"

      - if: matrix.os == 'macos-latest'
        run: brew install plantuml

      - if: matrix.os == 'windows-latest'
        run: cinst -y plantuml

      - run: bundle exec rake

  tests-passed:
    needs: rake
    runs-on: ubuntu-latest
    continue-on-error: true
    steps:
      - name: Trigger tests passed event
        uses: Sibz/github-status-action@v1
        with:
          authToken: ${{ secrets.METANORMA_CI_PAT_TOKEN || secrets.GITHUB_TOKEN }}
          context: 'tests-passed-successfully'
          description: 'Tests passed successfully'
          state: 'success'
          sha: ${{ github.event.pull_request.head.sha || github.sha }}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
metanorma-iho-0.2.14 .github/workflows/rake.yml
metanorma-iho-0.2.13 .github/workflows/rake.yml