Skip to content

Commit 91d47ce

Browse files
Merge pull request #7 from layer5io/perf-profile-name
update README
2 parents dd42345 + f48026e commit 91d47ce

File tree

2 files changed

+68
-2
lines changed

2 files changed

+68
-2
lines changed

README.md

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,61 @@
1-
# layer5-repo-template
2-
This repository is used as the boilerplate for consistency across all Layer5 repos.
1+
# Meshery SMP Action
2+
This repository is used for storing a GitHub action for performing SMP tests using Meshery
3+
4+
## Inputs
5+
```yaml
6+
# token to connect with the remote provider
7+
provider_token:
8+
description: "Provider token to use. NOTE: value of the 'token' key in auth.json"
9+
required: true
10+
11+
# platform to deploy meshery
12+
platform:
13+
description: "Platform to deploy meshery on. Possible values: docker, kubernetes"
14+
default: docker
15+
16+
# SUPPLY EITHER "profile_filename" or profile_name
17+
18+
# name of the file storing the performance profile (keep in .github)
19+
profile_filename:
20+
description: "Name of the file containing SMP profile"
21+
22+
# name of the prformance profile to use
23+
profile_name:
24+
description: "Name of the performance profile"
25+
```
26+
27+
## Sample configuration
28+
```yaml
29+
name: Testing SMP action
30+
on:
31+
push:
32+
branches:
33+
'perf'
34+
35+
jobs:
36+
job1:
37+
name: Run Performance Test
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: checkout
41+
uses: actions/checkout@v2
42+
with:
43+
ref: 'perf'
44+
45+
- name: Deploy k8s
46+
uses: manusa/[email protected]
47+
with:
48+
minikube version: 'v1.21.0'
49+
kubernetes version: 'v1.20.7'
50+
driver: docker
51+
52+
- name: Performance test
53+
uses: layer5io/meshery-smp-action@master
54+
with:
55+
provider_token: ${{ secrets.PROVIDER_TOKEN }}
56+
platform: docker
57+
profile_name: demo
58+
```
359
460
<div>&nbsp;</div>
561

action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,23 @@ description: "Validate SMP specification using Meshery"
33
author: "Layer5"
44

55
inputs:
6+
# token to connect with the remote provider
67
provider_token:
78
description: "Provider token to use. NOTE: value of the 'token' key in auth.json"
9+
required: true
10+
11+
# platform to deploy meshery
812
platform:
913
description: "Platform to deploy meshery on. Possible values: docker, kubernetes"
1014
default: docker
15+
16+
# SUPPLY EITHER "profile_filename" or profile_name
17+
18+
# name of the file storing the performance profile (keep in .github)
1119
profile_filename:
1220
description: "Name of the file containing SMP profile"
21+
22+
# name of the prformance profile to use
1323
profile_name:
1424
description: "Name of the performance profile"
1525

0 commit comments

Comments
 (0)