Sha256: df121bc197ce45f5145905d192285f520702c1bdc6d3f3dae523fed222e9876c

Contents?: true

Size: 1.78 KB

Versions: 3

Compression:

Stored size: 1.78 KB

Contents

name: Continuous Integration

on:
  push:
    branches: [main]
  pull_request:
    types: [opened, synchronize]
    branches: [main]
  schedule:
    - cron: "0 8 * * 5" # At 08:00 on Friday # https://crontab.guru/#0_8_*_*_5
  workflow_dispatch:

jobs:
  test-unit:
    env:
      MAKEFLAGS: -j2
    strategy:
      matrix:
        platform: [ubuntu-latest, windows-latest]
        ruby: ["2.3", "2.4", "2.5", "2.6", "2.7", "3.0", "head"]
    runs-on: ${{ matrix.platform }}
    steps:
      - name: configure git crlf on windows
        if: matrix.platform == 'windows-latest'
        run: |
          git config --system core.autocrlf false
          git config --system core.eol lf
      - uses: actions/checkout@v2
      - uses: MSP-Greg/setup-ruby-pkgs@v1
        with:
          apt-get: _update_ build-essential cmake
          mingw: _upgrade_ cmake
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - run: bundle exec rake test:unit

  test-examples:
    env:
      MAKEFLAGS: -j2
    strategy:
      matrix:
        platform: [ubuntu-latest, windows-latest]
        ruby: ["3.0"]
    runs-on: ${{ matrix.platform }}
    steps:
      - name: configure git crlf on windows
        if: matrix.platform == 'windows-latest'
        run: |
          git config --system core.autocrlf false
          git config --system core.eol lf
      - uses: actions/checkout@v2
      - uses: MSP-Greg/setup-ruby-pkgs@v1
        with:
          apt-get: _update_ build-essential cmake
          mingw: _upgrade_ cmake
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true
      - uses: actions/cache@v2
        with:
          path: examples/ports/archives
          key: ${{ matrix.platform }}-examples-${{ hashFiles('examples/Rakefile') }}
      - run: bundle exec rake test:examples

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mini_portile2-2.5.3 .github/workflows/ci.yml
mini_portile2-2.6.0 .github/workflows/ci.yml
mini_portile2-2.5.2 .github/workflows/ci.yml