Merge pull request #50 from th3Maid/dependabot/cargo/maid_visual/src-… #96
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: maid_runner | |
on: | |
push: | |
branches: | |
- "*/*" | |
- "trunk" | |
- "build" | |
- "stable" | |
pull_request: | |
branches: | |
- "*/*" | |
- "trunk" | |
- "build" | |
- "stable" | |
schedule: | |
- cron: "0 0 * * *" # This schedule runs at midnight every day | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Depedencies | |
run: | | |
sudo mkdir /var/maid | |
sudo cp maid_lists/ /var/maid -R | |
sudo chown $(whoami):$(whoami) /var/maid -R | |
sudo apt update | |
sudo apt install aptitude | |
sudo aptitude install -y p7zip-full nmap curl xxd libc6 exiftool traceroute wget iproute2 whois dnsutils dirb dnsenum | |
- name: Checkout github repo (+ download lfs dependencies) | |
uses: actions/checkout@v2 | |
with: | |
lfs: true | |
- name: Checkout LFS objects | |
run: git lfs checkout | |
- name: Uncompress needed files | |
run: | | |
7z x /var/maid/maid_lists/malware/full.csv.7z.001 | |
mv ./full.csv /var/maid/maid_lists/general/malware_hash.bin | |
rm full.csv | |
- name: Test Depedencies | |
run: nmap --version && curl --version | |
- name: Build | |
run: cargo build --verbose --manifest-path maid_runner/Cargo.toml | |
- name: Run tests | |
run: cargo test --verbose --manifest-path maid_runner/Cargo.toml |