generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rudraksh Pareek <[email protected]>
- Loading branch information
1 parent
dd42345
commit f48026e
Showing
2 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> </div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters