Skip to content

Commit

Permalink
Change github workflows triggers (#75)
Browse files Browse the repository at this point in the history
* Run linter analysis only when pushed to the develop and main branches and on each pr trigger

* Run build and testing when pushed to main and develop branches
  • Loading branch information
Stefan-Ethernal authored Jan 12, 2024
1 parent 0d68f22 commit 1fe863c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
---
name: CI
on: # yamllint disable-line rule:truthy
workflow_dispatch: {}
push:
branches:
- main
- develop
pull_request:
workflow_dispatch: {}

jobs:
build:
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,10 @@ name: Lint
on: # yamllint disable-line rule:truthy
push:
branches:
- "*"
tags-ignore:
- "v*"
paths:
- "**.go"
- main
- develop

pull_request:
types:
- opened
- synchronize
- reopened

workflow_call: {}
workflow_dispatch: {}
Expand Down

0 comments on commit 1fe863c

Please sign in to comment.