Skip to content
Merged
17 changes: 17 additions & 0 deletions .github/actions/setup-polytest/action.yml
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) || '' }}
40 changes: 40 additions & 0 deletions .github/workflows/publish-docker.yml
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

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
4 changes: 0 additions & 4 deletions test_configs/kmd_client.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
"package_name": "kmd_client",
"version": "0.6.0",
"suite": {
"GET swagger_json": {
"desc": "Tests for the GET /swagger.json endpoint",
"groups": ["Common Tests"]
},
"GET versions": {
"desc": "Tests for the GET /versions endpoint",
"groups": ["Common Tests"]
Expand Down