Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add gha smoke test #125

Merged
merged 4 commits into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ jobs:
run: |
cargo run --bin hawkeye -- -V
cargo run --bin hawkeye -- check
gha:
# GitHub Actions with Docker is only supported on Linux runners now.
runs-on: ubuntu-latest
name: Smoke test for GitHub Actions
steps:
- uses: actions/checkout@v4
- uses: ./

required:
name: Required
Expand All @@ -109,6 +116,7 @@ jobs:
needs:
- check
- docker
- gha
- smoke
- test
steps:
Expand All @@ -117,6 +125,7 @@ jobs:
if [[ ! ( \
"${{ needs.check.result }}" == "success" \
&& "${{ needs.docker.result }}" == "success" \
&& "${{ needs.gha.result }}" == "success" \
&& "${{ needs.smoke.result }}" == "success" \
&& "${{ needs.test.result }}" == "success" \
) ]]; then
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ tracing = "0.1.40"
sign-tag = true
shared-version = true
tag-name = "v{{version}}"
# Use release.py to replace content in action.yml now; so this commit is made ther.
#pre-release-commit-message = "chore: release v{{version}}"
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ inputs:

runs:
using: docker
image: Dockerfile
image: docker://ghcr.io/korandoru/hawkeye:edge
args:
- ${{ inputs.mode }}
- --config
Expand Down