Add GitHub action to trigger flow
This commit is contained in:
parent
2bad5f117e
commit
c6442b1d86
|
@ -0,0 +1,27 @@
|
|||
name: Run suite
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
script:
|
||||
description: 'Valid values are: predefined-prod, predefined-test, native-wss-prod'
|
||||
required: true
|
||||
default: 'native-wss-prod'
|
||||
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2.3.3
|
||||
|
||||
- name: Install NodeJS
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
|
||||
- name: npm install
|
||||
uses: bahmutov/npm-install@v1
|
||||
|
||||
- name: Run
|
||||
run: npm run ${{ github.event.inputs.script }}
|
|
@ -8,7 +8,7 @@
|
|||
"fix": "run-s lint format",
|
||||
"predefined-prod": "mocha predefinedProdFleet.js --exit",
|
||||
"predefined-test": "mocha predefinedTestFleet.js --exit ",
|
||||
"native-wss": "mocha nativeWssProdFleet.js --exit"
|
||||
"native-wss-prod": "mocha nativeWssProdFleet.js --exit"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"env": {
|
||||
|
|
Loading…
Reference in New Issue