Skip to content

Commit

Permalink
chore(github actions): refine on paths (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalexiei authored Dec 3, 2024
1 parent 4356ca1 commit abc0ad7
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 8 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@ name: Documentation Website CI
on:
push:
branches:
- main
- 'main'
paths:
# ⬇ Keep paths in sync with `typescript.yml`
- '.github/**'
- '*'
- '!Cargo.toml'
# ⬆ Keep paths in sync with `typescript.yml`
- 'apps/documentation/**'
pull_request:
paths:
# ⬇ Keep paths in sync with `typescript.yml`
- '.github/**'
- '*'
- '!Cargo.toml'
# ⬆ Keep paths in sync with `typescript.yml`
- 'apps/documentation/**'

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy documentation website on AWS S3
on:
push:
branches:
- main
- 'main'
paths:
- '.github/**'
- 'apps/documentation/**'
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/repo-root-ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
name: Repo root CI

# All workflows are triggered based on specific paths,
# the root repository is something that is not applicable to rust nor typescript
# so it has been moved in a standalone workflow

on:
push:
branches:
- main
- 'main'
paths:
- '.github/**'
- './*'
- '*'
pull_request:
paths:
- '.github/**'
- './*'
- '*'

jobs:
build-and-test:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ name: Rust CI
on:
push:
branches:
- main
- 'main'
paths:
- '.github/**'
- 'Cargo.toml'
- 'crates/**'
pull_request:
paths:
- '.github/**'
- 'Cargo.toml'
- 'crates/**'

env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spell-checking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Spell Checker
on:
push:
branches:
- main
- 'main'

pull_request:

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@ name: Typescript CI
on:
push:
branches:
- main
- 'main'
paths:
# ⬇ Keep paths in sync with `ci-documentation.yml`
- '.github/**'
- '*'
- '!Cargo.toml'
# ⬆ Keep paths in sync with `ci-documentation.yml`
- 'packages/**'
pull_request:
paths:
# ⬇ Keep paths in sync with `ci-documentation.yml`
- '.github/**'
- '*'
- '!Cargo.toml'
# ⬆ Keep paths in sync with `ci-documentation.yml`
- 'packages/**'

jobs:
Expand Down

0 comments on commit abc0ad7

Please sign in to comment.