chore: workflows ignore paths (#697)
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
76ef9ca9cb
commit
e092bcb681
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 * * *'
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in New Issue