From 1b3249145055d56ba5332a934e255f0ded39a025 Mon Sep 17 00:00:00 2001 From: JohnAlbin Date: Wed, 11 Oct 2023 02:19:25 +0800 Subject: [PATCH] ci(next): remove deprecated GH workflow --- modules/next/.github/workflows/main.yml | 66 ------------------------- 1 file changed, 66 deletions(-) delete mode 100644 modules/next/.github/workflows/main.yml diff --git a/modules/next/.github/workflows/main.yml b/modules/next/.github/workflows/main.yml deleted file mode 100644 index eaa9f81f..00000000 --- a/modules/next/.github/workflows/main.yml +++ /dev/null @@ -1,66 +0,0 @@ -name: Tests -on: - push: - pull_request: - branches: - - 8.x-1.x - -jobs: - phpunit: - runs-on: ubuntu-latest - strategy: - matrix: - include: - - drupal: "^8.9" - name: Drupal ${{ matrix.drupal }} - services: - mysql: - image: mysql:5.7 - env: - MYSQL_ALLOW_EMPTY_PASSWORD: yes - MYSQL_DATABASE: db - ports: - - 3306 - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 - steps: - - uses: actions/checkout@v2 - - uses: shivammathur/setup-php@v2 - with: - php-version: 7.1 - extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, bcmath, soap, intl, gd, exif, iconv - coverage: none - tools: composer:v1 - - name: Get composer cache directory - id: composercache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - uses: actions/cache@v2 - with: - path: ${{ steps.composercache.outputs.dir }} - key: ${{ runner.os }}-${{ matrix.drupal }}-composer-${{ hashFiles('**/composer.json') }} - restore-keys: ${{ runner.os }}-composer- - - name: Setup problem matchers for PHPUnit - run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - name: Setup Drupal - run: | - COMPOSER_MEMORY_LIMIT=-1 composer create-project drupal/recommended-project:${{ matrix.drupal }} ~/drupal --no-interaction - cd ~/drupal - composer config extra.enable-patching true - composer config extra.compile-mode all - composer config minimum-stability dev - composer config prefer-stable true - composer config preferred-install dist - composer config repositories.0 path $GITHUB_WORKSPACE - composer config repositories.1 composer https://packages.drupal.org/8 - COMPOSER_MEMORY_LIMIT=-1 composer require drupal/core-dev:${{ matrix.drupal }} --no-suggest - - name: Copy module - run: cp -R ../next-drupal-module ~/drupal/web/modules/next - - name: Run php built-in server - run: php -S 127.0.0.1:8080 -t ~/drupal/web & - - name: Run PHPUnit - run: | - cd ~/drupal/web - ../vendor/bin/phpunit -c core modules/next - env: - SYMFONY_DEPRECATIONS_HELPER: weak - SIMPLETEST_DB: mysql://root:@127.0.0.1:${{ job.services.mysql.ports[3306] }}/db - SIMPLETEST_BASE_URL: http://127.0.0.1:8080