-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(CI): execute for each directory
- Loading branch information
1 parent
d3d8d0b
commit 1d80d56
Showing
5 changed files
with
117 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This all is a workaround for the [lack of YAML anchors in Github Actions](https://github.com/actions/runner/issues/1182). | ||
# Once those are added, this file can be merged with /reusable/check.yml | ||
name: checks execute | ||
|
||
permissions: | ||
contents: read | ||
# This configuration allows maintainers of this repo to create a branch and pull request based on | ||
# the new branch. Restricting the push trigger to the main branch ensures that the PR only gets | ||
# built once. | ||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- operators/kube-rs-building-cronjob/** | ||
- operators/poc-secondary-resource-management/** | ||
pull_request: | ||
paths: | ||
- operators/kube-rs-building-cronjob/** | ||
- operators/poc-secondary-resource-management/** | ||
# If new code is pushed to a PR branch, then cancel in progress workflows for that PR. Ensures that | ||
# we don't waste CI time, and returns results quicker https://github.com/jonhoo/rust-ci-conf/pull/5 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
jobs: | ||
use-reusable: | ||
uses: ./.github/workflows/reusable/check.yml | ||
with: | ||
directories: | | ||
operators/kube-rs-building-cronjob/** | ||
operators/poc-secondary-resource-management/** | ||
msrv: "1.56.1" | ||
secrets: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This all is a workaround for the [lack of YAML anchors in Github Actions](https://github.com/actions/runner/issues/1182). | ||
# Once those are added, this file can be merged with /reusable/schedule.yml | ||
name: scheduled execute | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- operators/kube-rs-building-cronjob/** | ||
- operators/poc-secondary-resource-management/** | ||
pull_request: | ||
paths: | ||
- operators/kube-rs-building-cronjob/** | ||
- operators/poc-secondary-resource-management/** | ||
schedule: | ||
- cron: "7 7 * * 1" | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
use-reusable: | ||
uses: ./.github/workflows/reusable/scheduled.yml | ||
with: | ||
directories: | | ||
operators/kube-rs-building-cronjob/** | ||
operators/poc-secondary-resource-management/** |