mirror of
https://github.com/trailofbits/algo.git
synced 2025-08-03 11:23:03 +02:00
linter
This commit is contained in:
parent
f4d59e427f
commit
cbdd509486
2 changed files with 1 additions and 22 deletions
1
.github/workflows/linter.yml
vendored
1
.github/workflows/linter.yml
vendored
|
@ -23,3 +23,4 @@ jobs:
|
||||||
ANSIBLE_DIRECTORY: .
|
ANSIBLE_DIRECTORY: .
|
||||||
ANSIBLE_FILE_NAME: .ansible-lint
|
ANSIBLE_FILE_NAME: .ansible-lint
|
||||||
OUTPUT_DETAILS: detailed
|
OUTPUT_DETAILS: detailed
|
||||||
|
VALIDATE_ALL_CODEBASE: false
|
||||||
|
|
22
.github/workflows/main.yml
vendored
22
.github/workflows/main.yml
vendored
|
@ -3,28 +3,6 @@ name: Main
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
|
||||||
runs-on: ubuntu-18.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions/setup-python@v2.2.2
|
|
||||||
with:
|
|
||||||
python-version: '3.7'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt update -y
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install -r requirements.txt
|
|
||||||
sudo snap install shellcheck
|
|
||||||
pip install ansible-lint
|
|
||||||
|
|
||||||
- name: Checks and linters
|
|
||||||
run: |
|
|
||||||
/snap/bin/shellcheck algo install.sh
|
|
||||||
ansible-playbook main.yml --syntax-check
|
|
||||||
ansible-lint -x experimental,package-latest,unnamed-task -v *.yml roles/{local,cloud-*}/*/*.yml
|
|
||||||
|
|
||||||
scripted-deploy:
|
scripted-deploy:
|
||||||
runs-on: ubuntu-16.04
|
runs-on: ubuntu-16.04
|
||||||
strategy:
|
strategy:
|
||||||
|
|
Loading…
Add table
Reference in a new issue