|
25 | 25 | - '*' |
26 | 26 |
|
27 | 27 | jobs: |
28 | | - test: |
29 | | - runs-on: ${{ matrix.os }} |
30 | | - timeout-minutes: 40 |
31 | | - |
32 | | - services: |
33 | | - postgres: |
34 | | - image: postgres:9.6 |
35 | | - ports: ["5432:5432"] |
36 | | - env: |
37 | | - POSTGRES_USER: postgres |
38 | | - POSTGRES_PASSWORD: postgres |
39 | | - options: >- |
40 | | - --health-cmd pg_isready |
41 | | - --health-interval 10s |
42 | | - --health-timeout 5s |
43 | | - --health-retries 5 |
44 | | -
|
45 | | - strategy: |
46 | | - fail-fast: true |
47 | | - matrix: |
48 | | - ruby: |
49 | | - - '2.7' |
50 | | - - '3.0' |
51 | | - - '3.1' |
52 | | - - '3.2' |
53 | | - os: |
54 | | - - ubuntu-22.04 |
55 | | - - ubuntu-latest |
56 | | - exclude: |
57 | | - - { os: ubuntu-latest, ruby: '2.7' } |
58 | | - - { os: ubuntu-latest, ruby: '3.0' } |
59 | | - |
60 | | - env: |
61 | | - RAILS_ENV: test |
62 | | - |
63 | | - name: ${{ matrix.os }} - Ruby ${{ matrix.ruby }} |
64 | | - steps: |
65 | | - - name: Install system dependencies |
66 | | - run: sudo apt-get install libpcap-dev graphviz |
67 | | - |
68 | | - - name: Checkout code |
69 | | - uses: actions/checkout@v2 |
70 | | - |
71 | | - - name: Setup Ruby |
72 | | - uses: ruby/setup-ruby@v1 |
73 | | - with: |
74 | | - ruby-version: '${{ matrix.ruby }}' |
75 | | - bundler-cache: true |
76 | | - |
77 | | - - name: Test |
78 | | - run: | |
79 | | - cp spec/dummy/config/database.yml.github_actions spec/dummy/config/database.yml |
80 | | - bundle exec rake --version |
81 | | - bundle exec rake db:create db:migrate |
82 | | -
|
83 | | - # Disabling this check because it is proving unreliable |
84 | | - # git diff --exit-code spec/dummy/db/structure.sql |
85 | | - bundle exec rake spec |
86 | | - bundle exec rake yard |
87 | | -
|
88 | | - - name: Upload coverage report |
89 | | - uses: actions/upload-artifact@v4 |
90 | | - with: |
91 | | - name: coverage-${{ matrix.os }}-${{ matrix.ruby }} |
92 | | - path: | |
93 | | - coverage/ |
94 | | - retention-days: 1 |
| 28 | + build: |
| 29 | + uses: cgranleese-r7/metasploit-framework/.github/workflows/shared_gem_verify_rails.yml@add-gem-verify-shared-pipeline |
| 30 | + with: |
| 31 | + dependencies: '["libpcap-dev", "graphviz"]' |
| 32 | + test_commands: | |
| 33 | + cp spec/dummy/config/database.yml.github_actions spec/dummy/config/database.yml; |
| 34 | + bundle exec rake --version; |
| 35 | + bundle exec rake db:create db:migrate; |
| 36 | + bundle exec rake spec; |
| 37 | + bundle exec rake yard |
0 commit comments