A github action for running conformance test against a pluggable component.
- name: Conformance Tests
uses: dapr-sandbox/[email protected]
with:
type: state
socket: /tmp/socket.sock
metadata: | ## component-specific init metadata
timeout: 10s
operations: | ## If not provided all operations will be tested
- get
A component listening to the specified socket is required, see a complete example below:
name: conformance-test
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Run the component
shell: bash
run: docker run -d -it --env DAPR_COMPONENT_SOCKET_PATH=/tmp/socket.sock -v /tmp:/tmp tmacam/dapr-memstore-java:latest
- name: Conformance Tests
uses: dapr-sandbox/[email protected]
with:
type: state
socket: /tmp/socket.sock
metadata: |
timeout: 10s
concurrency: 1
operations: |
- get
- set