Add test config #27
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: 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 |