diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a165bd76c2a..d016446a658 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,26 +3,15 @@ name: CI on: push: branches: [ main, release-* ] + paths-ignore: [ '**.md', '**.png', '**.jpg', '**.svg', '**/docs/**' ] pull_request: branches: [ main, release-* ] + paths-ignore: [ '**.md', '**.png', '**.jpg', '**.svg', '**/docs/**' ] env: GO_VERSION: 1.15 jobs: - lint: - name: Lint - timeout-minutes: 20 - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Golangci lint - uses: golangci/golangci-lint-action@v2 - with: - version: v1.40.1 - test: name: Test timeout-minutes: 20 @@ -50,7 +39,7 @@ jobs: name: Build timeout-minutes: 20 runs-on: ubuntu-latest - needs: [lint, test] + needs: [test] steps: - name: Set up Go uses: actions/setup-go@v2 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 197b220f7f1..63eee23cc2c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -3,8 +3,10 @@ name: CodeQL Analysis on: push: branches: [ main, release-* ] + paths-ignore: [ '**.md', '**.png', '**.jpg', '**.svg', '**/docs/**' ] pull_request: branches: [ main, release-* ] + paths-ignore: [ '**.md', '**.png', '**.jpg', '**.svg', '**/docs/**' ] schedule: - cron: '0 4 * * *' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000000..61f2878f5c2 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,24 @@ +name: Lint + +on: + push: + branches: [ main, release-* ] + pull_request: + branches: [ main, release-* ] + +env: + GO_VERSION: 1.15 + +jobs: + lint: + name: Lint + timeout-minutes: 20 + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Golangci lint + uses: golangci/golangci-lint-action@v2 + with: + version: v1.40.1