Skip to content

Add test config

Add test config #27

Workflow file for this run

name: Lint and check code for errors
on:
push:
branches:
- rewrite
paths:
- "Payload_Type/thanatos/**"
- ".github/workflows/**"
env:
AGENT_CODE: Payload_Type/thanatos/agent
MYTHIC_CODE: Payload_Type/thanatos
jobs:
lint-agent:
name: Lint Agent Code
runs-on: ubuntu-latest
env:
JSON_CONFIG: testing/configs/config.json
defaults:
run:
working-directory: ${{ env.AGENT_CODE }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/workflows/dependencies
- name: Lint agent code
run: make lint
- name: Check agent code formatting
run: make checkformat
lint-mythic:
name: Lint Mythic Code
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ env.MYTHIC_CODE }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/workflows/dependencies
- name: Build protobuf files
run: make protobuf
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
working-directory: ${{ env.MYTHIC_CODE }}
- name: Check Mythic code formatting
run: make checkformat