Skip to content

Commit

Permalink
ci: fix push vs pr
Browse files Browse the repository at this point in the history
shoenig committed Sep 4, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent afc3c3f commit eee3fc0
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
@@ -10,6 +18,7 @@ jobs:
run: |
copywrite headers --plan
run-lint:
timeout-minutes: 5
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
@@ -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
@@ -33,6 +42,7 @@ jobs:
run: |
make changes
run-tests:
timeout-minutes: 5
needs:
- 'run-copywrite'
- 'run-lint'

0 comments on commit eee3fc0

Please sign in to comment.