Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes acceptance tests report generation #725

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading