1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-22 11:44:50 -04:00

Fix and refine workflows (#199)

* Fix linter: ansible not found error
* Refine codeql: only run on *.go files
This commit is contained in:
Loyalsoldier 2020-09-16 15:18:25 +08:00 committed by GitHub
parent b744a63990
commit e32c651573
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -3,9 +3,13 @@ name: "CodeQL"
on: on:
push: push:
branches: [master] branches: [master]
paths:
- "**/*.go"
pull_request: pull_request:
# The branches below must be a subset of the branches above # The branches below must be a subset of the branches above
branches: [master] branches: [master]
paths:
- "**/*.go"
schedule: schedule:
- cron: '0 0 * * 1' - cron: '0 0 * * 1'

View File

@ -32,6 +32,7 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: false VALIDATE_ALL_CODEBASE: false
VALIDATE_ANSIBLE: false
VALIDATE_BASH: false VALIDATE_BASH: false
VALIDATE_DOCKERFILE: false VALIDATE_DOCKERFILE: false
VALIDATE_DOCKERFILE_HADOLINT: false VALIDATE_DOCKERFILE_HADOLINT: false
@ -44,4 +45,4 @@ jobs:
uses: golangci/golangci-lint-action@v2 uses: golangci/golangci-lint-action@v2
with: with:
version: v1.31 version: v1.31
args: --config=.github/linters/.golangci.yml args: --config=.github/linters/.golangci.yml