-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
27 lines (27 loc) · 1.12 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Data Contract CLI
description: Run Data Contract Tests. The result is written as a JUnit Test Report to 'TEST-datacontract.xml'.
inputs:
location:
description: The location (url or path) of the data contract YAML. The current Github workspace is set as working dir and mounted to '/github/workspace'.
required: true
default: 'datacontract.yaml'
server:
description: The server configuration to run the schema and quality tests. Use the key of the server object in the data contract yaml file to refer to a server, e.g., `production`, or `all` for all servers (default).
required: false
default: all
junit-test-report:
description: The location where the JUnit test report file should be written to. This test report can be used with a subsequent action to create a GitHub test summary.
required: false
default: TEST-datacontract.xml
runs:
using: 'docker'
image: 'docker://datacontract/cli:snapshot-latest'
args:
- 'test'
- --server
- ${{ inputs.server }}
- --output-format
- junit
- --output
- ${{ inputs.junit-test-report }}
- ${{ inputs.location }}