Skip to content

Commit

Permalink
ci: run actions only on main branch and PR
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jun 11, 2022
1 parent 79a6168 commit 2e768dd
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Build

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

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

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

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

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

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

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

jobs:
coverage:
Expand Down

0 comments on commit 2e768dd

Please sign in to comment.