Skip to content

Commit

Permalink
Update role workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
D3vil0p3r committed Sep 28, 2024
1 parent 1e2b1eb commit e02e8e2
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions .github/workflows/roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,46 +38,10 @@ jobs:
- name: Run the installer
run: cyber-toolkit ${{ matrix.role_installer.role }}

nix-role-testing:
runs-on: ubuntu-latest
container:
image: nixos/nix:latest
options: --privileged

strategy:
fail-fast: false # Ensure all matrix jobs continue even if one fails
matrix:
role_installer:
- { role: "blue", job_name: "💙 Blue Teamer 💙" }
- { role: "bugbounty", job_name: "🐞 Bug Bounty Hunter 🐞" }
- { role: "cracker", job_name: "🍘 Cracker Specialist 🍘" }
- { role: "dos", job_name: "💀 DoS Tester 💀" }
- { role: "student", job_name: "🎓 Enthusiast Student 🎓" }
- { role: "forensic", job_name: "🔍 Forensic Analyst 🔍" }
- { role: "malware", job_name: "🦠 Malware Analyst 🦠" }
- { role: "mobile", job_name: "📱 Mobile Analyst 📱" }
- { role: "network", job_name: "🌐 Network Analyst 🌐" }
- { role: "osint", job_name: "🕵️ OSINT Specialist 🕵️" }
- { role: "red", job_name: "❤️ Red Teamer ❤️" }
- { role: "web", job_name: "🕸️ Web Pentester 🕸️" }


name: ${{ matrix.role_installer.job_name }} Test # Dynamically assign the job name based on the matrix

steps:
- name: Clone Athena Nix
run: git clone https://github.com/Athena-OS/athena-nix
- name: Set nix configuration
run: |
ls -la /etc
cd athena-nix/nixos
cp -rf home-manager hosts modules pkgs configuration.nix default.nix /etc/nixos/
nixos-rebuild switch
# Final job to send summary to webhook
notify-result:
runs-on: ubuntu-latest
needs: [arch-role-testing, nix-role-testing] # Wait until all matrix jobs complete
needs: arch-role-testing # Wait until all matrix jobs complete
if: always() # Ensures this job runs even if any job fails or is canceled
steps:
- name: Generate Job Results Summary
Expand Down

0 comments on commit e02e8e2

Please sign in to comment.