-
Notifications
You must be signed in to change notification settings - Fork 1
ci: adds shared reusable setup polytest and mock server actions #18
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
Merged
aorumbayev
merged 11 commits into
algorandfoundation:main
from
aorumbayev:feat/ghcr-and-shared-action
Dec 8, 2025
Merged
Changes from 6 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7a2b711
chore: cd for image publishing
aorumbayev 9d72675
chore: test (#1)
aorumbayev ce73f8c
Merge remote-tracking branch 'aorumbayev/main' into feat/ghcr-and-sha…
aorumbayev 878a3fa
feat: add shared setup-polytest gh action
aorumbayev 6ea91d1
chore: Update test_configs/kmd_client.jsonc
aorumbayev 02d14c4
chore: update .github/workflows/publish-docker.yml
aorumbayev b502a56
refactor: adds run-mock-server GitHub Action
aorumbayev 99fdb19
chore: tweak health check
aorumbayev f23f474
Merge branch 'main' into feat/ghcr-and-shared-action
aorumbayev b0617e7
docs: tweak docs
aorumbayev 2c0ff3d
chore: copilot comments
aorumbayev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,17 @@ | ||
| name: Setup Polytest | ||
| description: Install Rust and polytest CLI | ||
|
|
||
| inputs: | ||
| version: | ||
| description: Polytest version (empty for latest) | ||
| required: false | ||
| default: "" | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| - name: Install polytest | ||
| shell: bash | ||
| run: cargo install polytest --locked ${{ inputs.version && format('--version {0}', inputs.version) || '' }} |
This file contains hidden or 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,40 @@ | ||
| name: Publish Mock Server | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| paths: ['resources/mock-server/**'] | ||
| workflow_dispatch: # Manual trigger for testing from any branch | ||
|
|
||
| env: | ||
| IMAGE: ghcr.io/aorumbayev/polytest-mock-server | ||
aorumbayev marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Build and push | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: ./resources/mock-server | ||
| push: true | ||
| tags: | | ||
| ${{ env.IMAGE }}:latest | ||
| ${{ env.IMAGE }}:${{ github.sha }} | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max | ||
| platforms: linux/amd64,linux/arm64 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.