Skip to content

Commit

Permalink
workflows: only generate docs when appropriate, and don't do tests wh…
Browse files Browse the repository at this point in the history
…en only docs change
  • Loading branch information
gdamore committed Dec 22, 2024
1 parent 22058cc commit 2d39d49
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: [master]
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
branches: [main]
schedule:
- cron: "27 2 * * 2"

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: coverage
on: [push]
on:
push:
paths-ignore: ["docs/**", "**.adoc", "**.md"]
jobs:
linux-coverage:
name: linux
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/darwin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: darwin
on: [push, pull_request]
on:
push:
paths-ignore: ["docs/**", "**.adoc", "**.md"]
pull_request:
paths-ignore: ["docs/**", "**.adoc", "**.md"]
jobs:
build:
name: build
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: linux
on: [push, pull_request]
on:
push:
paths-ignore: ["docs/**", "**.adoc", "**.md"]
pull_request:
paths-ignore: ["docs/**", "**.adoc", "**.md"]
jobs:
build:
strategy:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/mdbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ on:
push:
branches:
- main
paths:
- "docs/**"
- ".github/workflows/mdbook.yml"
pull_request:
paths:
- "docs/**"
- ".github/workflows/mdbook.yml"

jobs:
deploy:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/sanitizer.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: sanitize
on: [push, pull_request]
on:
push:
paths-ignore: ["docs/**", "**.adoc", "**.md"]
pull_request:
paths-ignore: ["docs/**", "**.adoc", "**.md"]
jobs:
sanitize:
env:
Expand All @@ -9,8 +13,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
sanitizer: [ address, undefined, thread ]
os: [ ubuntu-latest ]
sanitizer: [address, undefined, thread]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v1
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: windows
on: [push, pull_request]
on:
push:
paths-ignore: ["docs/**", "**.adoc", "**.md"]
pull_request:
paths-ignore: ["docs/**", "**.adoc", "**.md"]
jobs:
build:
name: build
Expand Down

0 comments on commit 2d39d49

Please sign in to comment.