-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
56 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Run Nala on Milo Libs Manually | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'Provide the branch url' | ||
required: false | ||
type: string | ||
milolibs: | ||
description: 'Provide MiloLibs param' | ||
required: false | ||
type: string | ||
tags: | ||
description: 'Test scenario tags, if empty all tests will run. i.e., @marquee' | ||
required: false | ||
type: string | ||
platform: | ||
description: 'Platform to run tests on; select one, options: [ubuntu-latest, windows-latest, macos-latest]' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
action: | ||
name: Running tests | ||
runs-on: ${{ inputs.platform }} | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
- name: Set permissions | ||
run: chmod +x ./path/to/run.sh | ||
- name: Set environment variables | ||
run: | | ||
echo "PR_BRANCH_LIVE_URL_GH=${{ github.event.inputs.branch }}" >> $GITHUB_ENV | ||
echo "MILO_LIBS=${{ github.event.inputs.milolibs }}" >> $GITHUB_ENV | ||
- name: Run Nala ${{ inputs.platform }} | ||
uses: ./ | ||
env: | ||
labels: ${{ inputs.tags }} | ||
IMS_EMAIL: ${{ secrets.IMS_EMAIL }} | ||
IMS_PASS: ${{ secrets.IMS_PASS }} | ||
HLX_TKN: ${{ secrets.HLX_TKN }} | ||
SLACK_WH: ${{ secrets.SLACK_WH }} | ||
- name: Persist JSON Artifact | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: nala-results | ||
path: nala-results.json | ||
retention-days: 30 |
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