Sha256: bf9e7b18484445e7ebe5d5aed18588ead5089b8bef5e6c6a8e2ec9e14076ebd7

Contents?: true

Size: 1.46 KB

Versions: 3

Compression:

Stored size: 1.46 KB

Contents

name: Verify

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

jobs:
  test:
    runs-on: ubuntu-16.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.7

    env:
      RAILS_ENV: test

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

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

      - uses: actions/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}

      - name: Setup bundler
        run: |
          gem install bundler

      - name: Bundle install
        run: |
          bundle config path vendor/bundle
          bundle install --jobs 4 --retry 3

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

          # Disabling this check because it is proving unreliable
          # git diff --exit-code spec/dummy/db/structure.sql
          bundle exec rake spec
          bundle exec rake yard

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
wg-metasploit_data_models-4.1.4.02 .github/workflows/verify.yml
metasploit_data_models-5.0.0 .github/workflows/verify.yml
metasploit_data_models-4.1.4 .github/workflows/verify.yml