diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1adc1f378..e4128f6ae 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1,2 @@ -* @centreon/perl-reviewers \ No newline at end of file +* @centreon/perl-reviewers +.github/ @centreon/perl-reviewers @centreon/automation-reviewers diff --git a/.github/workflows/tests-functional.yml b/.github/workflows/tests-functional.yml index 31f20ccf5..406def0b0 100644 --- a/.github/workflows/tests-functional.yml +++ b/.github/workflows/tests-functional.yml @@ -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 diff --git a/tests/functional/cloud/aws/cloudtrail/countevents.sh b/tests/functional/cloud/aws/cloudtrail/countevents.sh index 7656ba872..836327e08 100644 --- a/tests/functional/cloud/aws/cloudtrail/countevents.sh +++ b/tests/functional/cloud/aws/cloudtrail/countevents.sh @@ -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