Fix core_version_requirement to ^10 only and CI to D10 only for 1.x b… #739
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test and code coverage | |
| on: | |
| - push | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| container: quantcdn/drupal-ci:10.4.x-dev | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Lint | |
| run: phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,yml . | |
| phpunit: | |
| runs-on: ubuntu-latest | |
| container: quantcdn/drupal-ci:10.4.x-dev | |
| services: | |
| mariadb: | |
| image: mariadb:10.11 | |
| ports: | |
| - 3306:3306 | |
| env: | |
| MYSQL_DATABASE: drupal10 | |
| MYSQL_ROOT_PASSWORD: drupal | |
| MYSQL_USER: drupal | |
| MYSQL_PASSWORD: drupal | |
| options: >- | |
| --health-cmd="mysqladmin ping" | |
| --health-interval=10s | |
| --health-timeout=5s | |
| --health-retries=30 | |
| steps: | |
| - name: Install Drupal | |
| run: drush si --db-url=mysql://root:drupal@mariadb:3306/drupal10 -y | |
| working-directory: /var/www/drupal | |
| - name: Install module dependencies | |
| run: composer --no-interaction --no-progress require drupal/token | |
| working-directory: /var/www/drupal | |
| - name: Set up custom module | |
| run: mkdir -p /var/www/drupal/web/modules/custom/quant | |
| - uses: actions/checkout@v4 | |
| with: | |
| path: quant | |
| - name: Move the module | |
| run: mv ./quant /var/www/drupal/web/modules/custom | |
| - name: Enable quant | |
| run: drush en quant -y | |
| working-directory: /var/www/drupal |