Skip to content

Commit

Permalink
test: どのブランチでもPush時にテストが走るようにする #305
Browse files Browse the repository at this point in the history
  • Loading branch information
yutotnh committed Dec 13, 2023
1 parent 5587d4a commit 5710e94
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 55 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Actionlint

on:
push:
branches: [ main ]
paths:
- ".github/workflows/*.ya?ml"
pull_request:
paths:
- ".github/workflows/*.ya?ml"
workflow_dispatch:
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@ name: Build spirit

on:
push:
branches:
- "main"
paths:
- "**/CMakeLists.txt"
- "**.h"
- "**.cpp"
- "**/build.yml"
- "!tests/**"
pull_request:
paths:
- "**/CMakeLists.txt"
- "**.h"
Expand Down Expand Up @@ -80,7 +71,15 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fqbn: ['esp32:esp32:esp32', 'STMicroelectronics:stm32:GenF3', 'STMicroelectronics:stm32:GenL0', 'arduino:mbed:pico', 'arduino:mbed:envie_m7', 'arduino:mbed:nano33ble']
fqbn:
[
"esp32:esp32:esp32",
"STMicroelectronics:stm32:GenF3",
"STMicroelectronics:stm32:GenL0",
"arduino:mbed:pico",
"arduino:mbed:envie_m7",
"arduino:mbed:nano33ble",
]

steps:
- uses: actions/checkout@v4
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/cmake-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@ name: Testing With CMake and CTest

on:
push:
branches:
- "main"
paths:
- "**/CMakeLists.txt"
- "**.h"
- "**.cpp"
- "**/cmake-test.yml"
- "!platform/**"
pull_request:
paths:
- "**/CMakeLists.txt"
- "**.h"
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@ name: "CodeQL"

on:
push:
branches:
- "main"
paths:
- "**/CMakeLists.txt"
- "**.h"
- "**.cpp"
- "**/codeql.yml"
pull_request:
# The branches below must be a subset of the branches above
branches:
- "main"
paths:
- "**/CMakeLists.txt"
- "**.h"
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ name: "Dev Containers"

on:
push:
branches:
- main
paths:
- ".devcontainer/**"
pull_request:
branches:
- "main"
paths:
- ".devcontainer/**"
workflow_dispatch:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/doxygen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ name: Doxygen

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_call:

jobs:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/spell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ name: Spell check

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
spell-check:
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/style-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@ name: clang-format Check

on:
push:
branches:
- "main"
paths:
- "**/CMakeLists.txt"
- "**.h"
- "**.cpp"
- "**/style-check.yml"
pull_request:
paths:
- "**/CMakeLists.txt"
- "**.h"
Expand Down

0 comments on commit 5710e94

Please sign in to comment.