Skip to content

Commit

Permalink
ci: trigger basic test when Cargo.lock changes
Browse files Browse the repository at this point in the history
Some dependency updates would make the build cannot work. Thus we need
to trigger the ci when Cargo.lock changes. Cargo.lock has the
information of the dependency versions. This would help to review PRs.

Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Dec 15, 2023
1 parent 4d00bac commit af5afcb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/aa_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ on:
- 'attestation-agent/**'
- '.github/workflows/aa_basic.yml'
- 'Cargo.toml'
- 'Cargo.lock'
pull_request:
paths:
- 'attestation-agent/**'
- '.github/workflows/aa_basic.yml'
- 'Cargo.toml'
- 'Cargo.lock'
create:
workflow_dispatch:

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/api-server-rest-basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ on:
- 'api-server-rest/**'
- '.github/workflows/api-server-rest-basic.yml'
- 'Cargo.toml'
- 'Cargo.lock'
pull_request:
paths:
- 'api-server-rest/**'
- '.github/workflows/api-server-rest-basic.yml'
- 'Cargo.toml'
- 'Cargo.lock'
create:
workflow_dispatch:

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cdh_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ on:
- 'confidential-data-hub/**'
- '.github/workflows/cdh_basic.yml'
- 'Cargo.toml'
- 'Cargo.lock'
pull_request:
paths:
- 'confidential-data-hub/**'
- '.github/workflows/cdh_basic.yml'
- 'Cargo.toml'
- 'Cargo.lock'
create:
workflow_dispatch:

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/image_rs_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ on:
paths:
- 'image-rs/**'
- '.github/workflows/image_rs_build.yml'
- 'Cargo.toml'
- 'Cargo.lock'
pull_request:
paths:
- 'image-rs/**'
- '.github/workflows/image_rs_build.yml'
- 'Cargo.toml'
- 'Cargo.lock'
create:
workflow_dispatch:

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ocicrypt_rs_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ on:
paths:
- 'ocicrypt-rs/**'
- '.github/workflows/ocicrypt_rs_build.yml'
- 'Cargo.toml'
- 'Cargo.lock'
pull_request:
paths:
- 'ocicrypt-rs/**'
- '.github/workflows/ocicrypt_rs_build.yml'
- 'Cargo.toml'
- 'Cargo.lock'
create:
workflow_dispatch:

Expand Down

0 comments on commit af5afcb

Please sign in to comment.