Skip to content

Commit

Permalink
correction lancement tests sur CI
Browse files Browse the repository at this point in the history
  • Loading branch information
agallou committed May 9, 2021
1 parent ff1e50b commit 57ed97c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,29 +81,5 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: PHP - Switch
run: sudo update-alternatives --set php /usr/bin/php5.6

- name: Composer - Get Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- uses: actions/cache@v1
id: cache-composer
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-php.5.6-${{ github.sha }}
restore-keys: composer-php.5.6-

- name: Composer - Create cache directory
run: mkdir -p /home/runner/.composer/cache
if: steps.cache-composer.outputs.cache-hit != 'true'

- name: CS fixer prerequisites
run: make configs/application/config.php

- name: Composer install
run: composer install --no-scripts

- name: Tests - Functional
run: make test-functional
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ test:
./bin/php-cs-fixer fix --dry-run -vv


test-functional: config data
test-functional: data config
CURRENT_UID=$(CURRENT_UID) docker-compose stop dbtest apachephptest
CURRENT_UID=$(CURRENT_UID) docker-compose up -d dbtest apachephptest
CURRENT_UID=$(CURRENT_UID) docker-compose run --no-deps --rm cliphp ./bin/behat
Expand Down
2 changes: 2 additions & 0 deletions tests/behat/features/Admin/AdminSite.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Feature: Administration - Partie Site

@reloadDbWithTestData
Scenario: Ajout/modification/suppression d'une rubrique
Given I am on the homepage
Then print last response
Given I am logged in as admin and on the Administration
And I follow "Rubriques"
Then I should see "Liste des rubriques"
Expand Down

0 comments on commit 57ed97c

Please sign in to comment.