Skip to content

Commit

Permalink
Fixes acceptance tests report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
cgranleese-r7 committed Oct 15, 2024
1 parent c3cd774 commit 99f3756
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/metasploit-framework-meterpreter_acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,13 @@ on:
# - cron: '*/15 * * * *'

jobs:
extract_current_branch:
name: Extract branch name
runs-on: ubuntu-latest
steps:
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

# Compile Java Meterpreter via docker if required, we can't always do this on the
# host environment (i.e. for macos). So it instead gets compiled first on a linux
# host, then the artifacts are copied back to the host later
java_meterpreter_compilation:
needs: extract_current_branch
name: Compile Java Meterpreter
runs-on: ubuntu-latest

env:
metasploitPayloadsCommit: ${{ needs.extract_current_branch.outputs.branch }}

steps:
- name: Checkout metasploit-payloads
uses: actions/checkout@v4
Expand Down Expand Up @@ -283,7 +270,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
if: always()
with:
repository: rapid7/metasploit-framework
path: metasploit-framework
ref: ${{ env.metasploitFrameworkCommit }}

- name: Install system dependencies (Linux)
if: always()
Expand All @@ -298,6 +288,7 @@ jobs:
ruby-version: '3.3'
bundler-cache: true
cache-version: 5
working-directory: metasploit-framework

- uses: actions/download-artifact@v4
id: raw_report_data
Expand All @@ -319,6 +310,7 @@ jobs:
find ${{steps.raw_report_data.outputs.download-path}}
bundle exec ruby tools/dev/report_generation/support_matrix/generate.rb --allure-data ${{steps.raw_report_data.outputs.download-path}} > ./allure-report/support_matrix.html
working-directory: metasploit-framework

- name: archive results
if: always()
Expand Down

0 comments on commit 99f3756

Please sign in to comment.