Skip to content

Commit

Permalink
Merge pull request #7 from layer5io/perf-profile-name
Browse files Browse the repository at this point in the history
update README
  • Loading branch information
DelusionalOptimist authored Aug 5, 2021
2 parents dd42345 + f48026e commit 91d47ce
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 2 deletions.
60 changes: 58 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,61 @@
# layer5-repo-template
This repository is used as the boilerplate for consistency across all Layer5 repos.
# Meshery SMP Action
This repository is used for storing a GitHub action for performing SMP tests using Meshery

## Inputs
```yaml
# token to connect with the remote provider
provider_token:
description: "Provider token to use. NOTE: value of the 'token' key in auth.json"
required: true

# platform to deploy meshery
platform:
description: "Platform to deploy meshery on. Possible values: docker, kubernetes"
default: docker

# SUPPLY EITHER "profile_filename" or profile_name

# name of the file storing the performance profile (keep in .github)
profile_filename:
description: "Name of the file containing SMP profile"

# name of the prformance profile to use
profile_name:
description: "Name of the performance profile"
```
## Sample configuration
```yaml
name: Testing SMP action
on:
push:
branches:
'perf'

jobs:
job1:
name: Run Performance Test
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
ref: 'perf'

- name: Deploy k8s
uses: manusa/[email protected]
with:
minikube version: 'v1.21.0'
kubernetes version: 'v1.20.7'
driver: docker

- name: Performance test
uses: layer5io/meshery-smp-action@master
with:
provider_token: ${{ secrets.PROVIDER_TOKEN }}
platform: docker
profile_name: demo
```
<div>&nbsp;</div>
Expand Down
10 changes: 10 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,23 @@ description: "Validate SMP specification using Meshery"
author: "Layer5"

inputs:
# token to connect with the remote provider
provider_token:
description: "Provider token to use. NOTE: value of the 'token' key in auth.json"
required: true

# platform to deploy meshery
platform:
description: "Platform to deploy meshery on. Possible values: docker, kubernetes"
default: docker

# SUPPLY EITHER "profile_filename" or profile_name

# name of the file storing the performance profile (keep in .github)
profile_filename:
description: "Name of the file containing SMP profile"

# name of the prformance profile to use
profile_name:
description: "Name of the performance profile"

Expand Down

0 comments on commit 91d47ce

Please sign in to comment.