Skip to content

Commit

Permalink
ci: fix push vs pr
Browse files Browse the repository at this point in the history
  • Loading branch information
shoenig committed Sep 4, 2024
1 parent afc3c3f commit 8620bca
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
name: Run CI Tests
on: [push, pull_request]
on:
pull_request:
paths-ignore:
- 'README.md'
- 'LICENSE'
push:
branches:
- 'main'
jobs:
run-copywrite:
timeout-minutes: 5
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
Expand All @@ -10,6 +18,7 @@ jobs:
run: |
copywrite headers --plan
run-lint:
timeout-minutes: 5
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
Expand All @@ -18,9 +27,9 @@ jobs:
version-file: go.mod
- uses: golangci/golangci-lint-action@v3
with:
version: v1.60.1
skip-cache: true
version: v1.60.3
run-changes:
timeout-minutes: 5
needs:
- 'run-copywrite'
runs-on: ubuntu-24.04
Expand All @@ -33,6 +42,7 @@ jobs:
run: |
make changes
run-tests:
timeout-minutes: 5
needs:
- 'run-copywrite'
- 'run-lint'
Expand Down

0 comments on commit 8620bca

Please sign in to comment.