Skip to content

Commit

Permalink
Run GH Actions on separate events (push, pull_request). (#88)
Browse files Browse the repository at this point in the history
* Run GH Actions on separate events (push, pull_request).

It should help to avoid duplicate execution in the pull requests.

* Update remaining GH workflows
  • Loading branch information
mennanov authored Oct 5, 2024
1 parent 530882f commit bbeadfb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/staticcheck.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Static Checks

on: [ "push", "pull_request" ]
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
staticcheck:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Go tests

on: [ push, pull_request ]
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
go-test:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/vet.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Linter

on: [ "push", "pull_request" ]
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
vet:
Expand Down

0 comments on commit bbeadfb

Please sign in to comment.