forked from adobecom/nala
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (55 loc) · 1.84 KB
/
bacom.milolibs.run.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Run Nala on Bacom with Milo Libs
on:
workflow_dispatch:
inputs:
branch:
description: 'Provide the live branch url. ex: https://main--bacom--adobecom.hlx.live'
required: false
type: string
milolibs:
description: 'Provide MiloLibs param. ex: ?milolibs=test-branch'
required: false
type: string
tags:
description: 'Test scenario tags, if empty all tests will run. i.e., @marketo'
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 }}
env:
WORKFLOW_NAME: 'Milo Libs Run'
MILO_LIBS_RUN: 'true'
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Set environment variables
run: |
echo "PR_BRANCH_MILOLIBS_LIVE_URL=${{ github.event.inputs.branch }}" >> $GITHUB_ENV
echo "MILO_LIBS=${{ github.event.inputs.milolibs }}" >> $GITHUB_ENV
- name: Run Nala ${{ inputs.platform }}
run: bash dailyrun.sh bacom ${{ inputs.tags }}
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: Display workflow name
run: echo "The workflow name is $WORKFLOW_NAME"
- name: Persist JSON Artifact
uses: actions/upload-artifact@v3
if: always()
with:
name: nala-results
path: nala-results.json
retention-days: 30