Sha256: afc28b8ddaafe5e58f9f4543b2c9c0e00c06e359e064ee5c76b49a0dc1bce100

Contents?: true

Size: 1.93 KB

Versions: 2

Compression:

Stored size: 1.93 KB

Contents

name: ubuntu

on:
  push:
    branches: [ master ]
  pull_request:
    paths-ignore:
      - .github/workflows/macos.yml
      - .github/workflows/windows.yml

jobs:
  test-linux:
    name: Test on Ruby ${{ matrix.ruby }} Ubuntu
    runs-on: ubuntu-latest
    continue-on-error: ${{ matrix.experimental }}
    strategy:
      fail-fast: false
      matrix:
        ruby: [ '2.6', '2.5', '2.4' ]
        experimental: [false]
        include:
          - ruby: '2.7'
            experimental: true
    steps:
      - uses: actions/checkout@master
      - name: Use Ruby
        uses: actions/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          architecture: 'x64'
      - name: Update gems
        run: |
          gem install bundler
          bundle install --jobs 4 --retry 3
      - name: Use Node
        uses: actions/setup-node@v1
        with:
          node-version: '12'
      - name: Install Puppeteer
        run: |
          sudo apt-get update
          sudo apt-get install libgbm1
          npm install -g puppeteer@3.0.1
      - name: Install Inkscape
        run: |
          sudo add-apt-repository ppa:inkscape.dev/stable
          sudo apt update
          sudo apt install inkscape
          inkscape --version
      - name: Run specs
        run: |
          bundle exec rake
      - name: Trigger dependent repositories
        if: github.ref == 'refs/heads/master' && matrix.ruby == '2.6'
        env:
          GH_USERNAME: ${{ secrets.PAT_USERNAME }}
          GH_ACCESS_TOKEN: ${{ secrets.PAT_TOKEN }}
        run: |
          curl -LO --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/trigger-gh-actions.sh
          [[ -f ".github/workflows/dependent_repos.env" ]] && source .github/workflows/dependent_repos.env
          for repo in $DEPENDENT_REPOS
          do
            sh trigger-gh-actions.sh $ORGANISATION $repo $GH_USERNAME $GH_ACCESS_TOKEN $GITHUB_REPOSITORY
          done

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
isodoc-1.1.0 .github/workflows/ubuntu.yml
isodoc-1.0.29 .github/workflows/ubuntu.yml