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