Update GitHub action (#4474)

This commit is contained in:
sdepassio 2023-06-12 16:20:17 +02:00 committed by GitHub
parent 8e92c2a8ac
commit e5da44cf40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 10 deletions

3
.github/CODEOWNERS vendored
View File

@ -1 +1,2 @@
* @centreon/perl-reviewers
* @centreon/perl-reviewers
.github/ @centreon/perl-reviewers @centreon/automation-reviewers

View File

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

View File

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