Update GitHub action (#4474)
This commit is contained in:
parent
8e92c2a8ac
commit
e5da44cf40
|
@ -1 +1,2 @@
|
|||
* @centreon/perl-reviewers
|
||||
* @centreon/perl-reviewers
|
||||
.github/ @centreon/perl-reviewers @centreon/automation-reviewers
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
name: Run mock API server
|
||||
name: Functional tests
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- MON-**
|
||||
pull_request:
|
||||
paths:
|
||||
- 'src/**'
|
||||
- 'tests/functional/**'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
AWS_tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
@ -14,13 +15,15 @@ jobs:
|
|||
- name: Use Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: "14.x"
|
||||
node-version: "16.x"
|
||||
- name: Install Mockoon CLI
|
||||
run: npm install -D @mockoon/cli
|
||||
- name: Install perl dependencies
|
||||
uses: perl-actions/install-with-cpm@stable
|
||||
uses: shogo82148/actions-setup-perl@v1
|
||||
with:
|
||||
install: |
|
||||
perl-version: '5.34'
|
||||
install-modules-with: cpm
|
||||
install-modules: |
|
||||
DateTime
|
||||
Digest::MD5
|
||||
Encode
|
||||
|
|
|
@ -24,7 +24,7 @@ if [[ $test_oknexttoken = "OK: Number of events: 20.00 | 'events_count'=20.00;;;
|
|||
then
|
||||
((nb_tests_ok++))
|
||||
else
|
||||
echo "$test_oknexttoken ko"
|
||||
echo "test_oknexttoken ko"
|
||||
echo $test_oknexttoken
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue