|
92 | 92 | name: infection.log |
93 | 93 | path: infection.log |
94 | 94 |
|
95 | | - behat: |
96 | | - name: Behat |
97 | | - runs-on: ubuntu-latest |
98 | | - env: |
99 | | - MAILER_DSN: 'smtp://localhost:1025' |
100 | | - DATABASE_URL: 'mysql://bewelcome:bewelcome@127.0.0.1:3306/bewelcome' |
101 | | - APP_ENV: 'test' |
102 | | - services: |
103 | | - mailcatcher: |
104 | | - image: tophfr/mailcatcher |
105 | | - ports: |
106 | | - - 1080:80 |
107 | | - - 1025:25 |
108 | | - db: |
109 | | - image: mariadb:10.1.41 |
110 | | - env: |
111 | | - MYSQL_ROOT_PASSWORD: bewelcome_root_dev |
112 | | - MYSQL_DATABASE: bewelcome |
113 | | - MYSQL_USER: bewelcome |
114 | | - MYSQL_PASSWORD: bewelcome |
115 | | - ports: |
116 | | - - 3306:3306 |
117 | | - steps: |
118 | | - - name: Checkout |
119 | | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2 |
120 | | - |
121 | | - - name: Setup PHP |
122 | | - uses: shivammathur/setup-php@ccf2c627fe61b1b4d924adfcbd19d661a18133a0 # tag=2.35.2 |
123 | | - with: |
124 | | - php-version: ${{ env.PHP_VERSION }} |
125 | | - extensions: curl, dom, gd, iconv, intl, json, libxml, mbstring, mysqli, pcntl, pdo_mysql, phar, tokenizer, xml, xmlwriter, xsl, zip |
126 | | - |
127 | | - - name: Setup NODE |
128 | | - uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # tag=v3.9.1 |
129 | | - with: |
130 | | - node-version: ${{ env.NODE_VERSION }} |
131 | | - |
132 | | - - name: Get Composer Cache Directory |
133 | | - id: composer-cache |
134 | | - run: echo "::set-output name=dir::$(composer config cache-files-dir)" |
135 | | - |
136 | | - - name: Cache dependencies |
137 | | - uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # tag=v4.2.4 |
138 | | - with: |
139 | | - path: ${{ steps.composer-cache.outputs.dir }} |
140 | | - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} |
141 | | - restore-keys: ${{ runner.os }}-composer- |
142 | | - |
143 | | - - name: Install project dependencies |
144 | | - run: | |
145 | | - yarn install --frozen-lock |
146 | | - composer install --prefer-dist --no-progress --no-suggest --no-interaction --no-scripts |
147 | | -
|
148 | | - - name: Prepare test database |
149 | | - run: | |
150 | | - yarn encore production |
151 | | - bin/console doctrine:database:create --env=test --if-not-exists |
152 | | - bin/console doctrine:schema:create --env=test |
153 | | - bin/console hautelook:fixtures:load --env=test --no-interaction |
154 | | -
|
155 | | - - name: Run behat tests |
156 | | - run: vendor/bin/behat --profile localhost --colors --tags='~@wip' |
157 | | - |
158 | 95 | phploc: |
159 | 96 | name: PHPLoc |
160 | 97 | runs-on: ubuntu-latest |
@@ -335,44 +272,6 @@ jobs: |
335 | 272 | - name: Validate Doctrine schema |
336 | 273 | run: bin/console doctrine:schema:validate --skip-sync |
337 | 274 |
|
338 | | - swagger: |
339 | | - name: Swagger validator |
340 | | - runs-on: ubuntu-latest |
341 | | - steps: |
342 | | - - name: Checkout |
343 | | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2 |
344 | | - |
345 | | - - name: Setup PHP |
346 | | - uses: shivammathur/setup-php@ccf2c627fe61b1b4d924adfcbd19d661a18133a0 # tag=2.35.2 |
347 | | - with: |
348 | | - php-version: ${{ env.PHP_VERSION }} |
349 | | - extensions: curl, dom, gd, iconv, intl, json, libxml, mbstring, mysqli, pcntl, pdo_mysql, phar, tokenizer, xml, xmlwriter, xsl, zip |
350 | | - |
351 | | - - name: Setup NODE |
352 | | - uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # tag=v3.9.1 |
353 | | - |
354 | | - - name: Get Composer Cache Directory |
355 | | - id: composer-cache |
356 | | - run: echo "::set-output name=dir::$(composer config cache-files-dir)" |
357 | | - |
358 | | - - name: Cache dependencies |
359 | | - uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # tag=v4.2.4 |
360 | | - with: |
361 | | - path: ${{ steps.composer-cache.outputs.dir }} |
362 | | - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} |
363 | | - restore-keys: ${{ runner.os }}-composer- |
364 | | - |
365 | | - - name: Install project dependencies |
366 | | - run: | |
367 | | - composer install --prefer-dist --no-progress --no-suggest --no-interaction --no-scripts |
368 | | - yarn install --frozen-lock |
369 | | -
|
370 | | - - name: Export Swagger documentation |
371 | | - run: bin/console api:swagger:export > swagger.json |
372 | | - |
373 | | - - name: Validate Swagger documentation |
374 | | - run: yarn swagger-cli validate swagger.json |
375 | | - |
376 | 275 | security: |
377 | 276 | name: Security checks |
378 | 277 | runs-on: ubuntu-latest |
|
0 commit comments