Skip to content

Commit

Permalink
chore: workflows ignore paths (#697)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Sep 29, 2021
1 parent f233979 commit 3589f65
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 * * *'

Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3589f65

Please sign in to comment.