Add GitHub action to trigger flow

This commit is contained in:
Franck Royer 2022-04-20 14:43:07 +10:00
parent 2bad5f117e
commit c6442b1d86
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
2 changed files with 28 additions and 1 deletions

27
.github/workflows/run.yml vendored Normal file
View File

@ -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 }}

View File

@ -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": {