Sha256: 7adf0d34e909f468b154e723254018ea1afbc25c2c1657e75852514336ddfa51

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 KB

Contents

name: Verify

on:
  push:
    branches:
      - '*'
  pull_request:
    branches:
      - '*'

jobs:
  test:
    runs-on: ubuntu-18.04
    timeout-minutes: 40

    services:
      postgres:
        image: postgres:9.6
        ports: [ "5432:5432" ]
        env:
          POSTGRES_USER: postgres
          POSTGRES_PASSWORD: postgres
        options: >-
          --health-cmd pg_isready
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5

    strategy:
      fail-fast: true
      matrix:
        ruby:
          - 2.5
          - 2.6
          - 2.7
          - 3.0

    env:
      RAILS_ENV: test

    name: Ruby ${{ matrix.ruby }}
    steps:
      - name: Install system dependencies
        run: sudo apt-get install graphviz

      - name: Checkout code
        uses: actions/checkout@v2

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

      - name: Test
        run: |
          cp spec/dummy/config/database.yml.github_actions spec/dummy/config/database.yml
          bundle exec rake --version
          bundle exec rake db:test:prepare

          bundle exec rake spec
          bundle exec rake yard

      - name: Upload coverage report
        uses: actions/upload-artifact@v2
        with:
          name: coverage-${{ matrix.ruby }}
          path: |
            coverage/
          retention-days: 1

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metasploit-model-4.0.3 .github/workflows/verify.yml