mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 03:51:33 +00:00
ci: fix warnings reported by yamllint
This commit is contained in:
parent
558129a734
commit
913b5fa60a
3 changed files with 43 additions and 31 deletions
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
name: Build Targets
|
name: Build Targets
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
@ -11,26 +12,27 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
- {
|
- {
|
||||||
name: "GZDoom"
|
name: "GZDoom"
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "Raze"
|
name: "Raze"
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "PrBoom-Plus"
|
name: "PrBoom-Plus"
|
||||||
}
|
}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
./build.py --target ${{ matrix.config.name }}
|
./build.py --target ${{ matrix.config.name }}
|
||||||
|
|
||||||
- name: List Build Directory
|
- name: List Build Directory
|
||||||
if: always()
|
if: always()
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
git status
|
git status
|
||||||
ls -lR .
|
ls -lR .
|
||||||
|
...
|
||||||
|
|
36
.github/workflows/lint.yml
vendored
36
.github/workflows/lint.yml
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
name: Lint Code
|
name: Lint Code
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
@ -7,23 +8,30 @@ jobs:
|
||||||
if: "${{ !contains(github.event.head_commit.message, '[skip lint]') }}"
|
if: "${{ !contains(github.event.head_commit.message, '[skip lint]') }}"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Super-Linter
|
- name: Super-Linter
|
||||||
uses: docker://ghcr.io/github/super-linter:slim-v4
|
uses: docker://ghcr.io/github/super-linter:slim-v4
|
||||||
env:
|
env:
|
||||||
FILTER_REGEX_INCLUDE: .*(\.py|\.md|\.yml)$
|
FILTER_REGEX_INCLUDE: .*(\.py|\.md|\.yml)$
|
||||||
FILTER_REGEX_EXCLUDE: .*/deps/.*
|
FILTER_REGEX_EXCLUDE: .*/deps/.*
|
||||||
VALIDATE_NATURAL_LANGUAGE: false
|
VALIDATE_NATURAL_LANGUAGE: false
|
||||||
VALIDATE_PYTHON_BLACK: false
|
VALIDATE_PYTHON_BLACK: false
|
||||||
|
|
||||||
- name: Bandit
|
- name: Bandit
|
||||||
run: |
|
run: |
|
||||||
pip3 install bandit
|
pip3 install bandit
|
||||||
# [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
|
# [B101:assert_used] Use of assert detected. The enclosed code will be
|
||||||
# [B310:blacklist] Audit url open for permitted schemes. Allowing use of file:/ or custom schemes is often unexpected.
|
# removed when compiling to optimised byte code.
|
||||||
# [B404:blacklist] Consider possible security implications associated with subprocess module.
|
# [B310:blacklist] Audit url open for permitted schemes. Allowing use
|
||||||
# [B603:subprocess_without_shell_equals_true] subprocess call - check for execution of untrusted input.
|
# of file:/ or custom schemes is often unexpected.
|
||||||
# [B607:start_process_with_partial_path] Starting a process with a partial executable path
|
# [B404:blacklist] Consider possible security implications associated
|
||||||
bandit --skip B101,B310,B404,B603,B607 --recursive . --exclude ./deps/vulkan-headers/share/vulkan/registry
|
# with subprocess module.
|
||||||
|
# [B603:subprocess_without_shell_equals_true] subprocess call - check
|
||||||
|
# for execution of untrusted input.
|
||||||
|
# [B607:start_process_with_partial_path] Starting a process with a
|
||||||
|
# partial executable path
|
||||||
|
bandit --skip B101,B310,B404,B603,B607 --recursive . --exclude \
|
||||||
|
./deps/vulkan-headers/share/vulkan/registry
|
||||||
|
...
|
||||||
|
|
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
name: Test Libraries
|
name: Test Libraries
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
@ -7,8 +8,9 @@ jobs:
|
||||||
if: "${{ !contains(github.event.head_commit.message, '[skip test]') }}"
|
if: "${{ !contains(github.event.head_commit.message, '[skip test]') }}"
|
||||||
runs-on: "macos-12"
|
runs-on: "macos-12"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
./build.py --target=test-deps
|
./build.py --target=test-deps
|
||||||
|
...
|
||||||
|
|
Loading…
Reference in a new issue