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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main, release-* ]
|
branches: [ main, release-* ]
|
||||||
|
paths-ignore: [ '**.md', '**.png', '**.jpg', '**.svg', '**/docs/**' ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main, release-* ]
|
branches: [ main, release-* ]
|
||||||
|
paths-ignore: [ '**.md', '**.png', '**.jpg', '**.svg', '**/docs/**' ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: 1.15
|
GO_VERSION: 1.15
|
||||||
|
|
||||||
jobs:
|
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:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
|
|
@ -50,7 +39,7 @@ jobs:
|
||||||
name: Build
|
name: Build
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [lint, test]
|
needs: [test]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,10 @@ name: CodeQL Analysis
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main, release-* ]
|
branches: [ main, release-* ]
|
||||||
|
paths-ignore: [ '**.md', '**.png', '**.jpg', '**.svg', '**/docs/**' ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main, release-* ]
|
branches: [ main, release-* ]
|
||||||
|
paths-ignore: [ '**.md', '**.png', '**.jpg', '**.svg', '**/docs/**' ]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 4 * * *'
|
- 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