Changeset 54851
- Timestamp:
- 11/16/2022 07:32:57 PM (2 years ago)
- Location:
- trunk/.github/workflows
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/coding-standards.yml
r54750 r54851 49 49 # - Checks out the repository. 50 50 # - Sets up PHP. 51 # - Logs debug information.52 51 # - Configures caching for PHPCS scans. 53 # - Installs Composer dependencies (use cache if possible).52 # - Installs Composer dependencies. 54 53 # - Make Composer packages available globally. 55 # - Logs PHP_CodeSniffer debug information.56 54 # - Runs PHPCS on the full codebase with warnings suppressed. 55 # - Generate a report for displaying issues as pull request annotations. 57 56 # - Runs PHPCS on the `tests` directory without warnings suppressed. 57 # - Generate a report for displaying `test` directory issues as pull request annotations. 58 58 # - Ensures version-controlled files are not modified or deleted. 59 59 60 phpcs: 60 61 name: PHP coding standards … … 74 75 tools: composer, cs2pr 75 76 76 - name: Log debug information77 run: |78 php --version79 composer --version80 81 77 # This date is used to ensure that the PHPCS cache is cleared at least once every week. 82 78 # http://man7.org/linux/man-pages/man1/date.1.html … … 99 95 run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH 100 96 101 - name: Log PHPCS debug information102 run: phpcs -i103 104 97 - name: Run PHPCS on all Core files 105 98 id: phpcs-core … … 127 120 # Performs the following steps: 128 121 # - Checks out the repository. 122 # - Sets up Node.js. 129 123 # - Logs debug information about the GitHub Action runner. 130 # - Installs Node.js. 131 # - Logs updated debug information. 132 # _ Installs npm dependencies. 124 # - Installs npm dependencies. 133 125 # - Run the WordPress JSHint checks. 134 126 # - Ensures version-controlled files are not modified or deleted. … … 145 137 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 146 138 139 - name: Set up Node.js 140 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 141 with: 142 node-version-file: '.nvmrc' 143 cache: npm 144 147 145 - name: Log debug information 148 146 run: | … … 152 150 svn --version 153 151 154 - name: Install Node.js 155 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 156 with: 157 node-version-file: '.nvmrc' 158 cache: npm 159 160 - name: Log debug information 161 run: | 162 npm --version 163 node --version 164 165 - name: Install Dependencies 152 - name: Install npm Dependencies 166 153 run: npm ci 167 154 -
trunk/.github/workflows/end-to-end-tests.yml
r54674 r54851 36 36 # - Sets environment variables. 37 37 # - Checks out the repository. 38 # - Sets up Node.js. 38 39 # - Logs debug information about the GitHub Action runner. 39 # - Installs Node.js. 40 # _ Installs npm dependencies. 40 # - Installs npm dependencies. 41 41 # - Builds WordPress to run from the `build` directory. 42 42 # - Starts the WordPress Docker container. 43 # - Logs general debug information.44 43 # - Logs the running Docker containers. 45 44 # - Logs Docker debug information (about both the Docker installation within the runner and the WordPress container). … … 62 61 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 63 62 63 - name: Set up Node.js 64 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 65 with: 66 node-version-file: '.nvmrc' 67 cache: npm 68 64 69 - name: Log debug information 65 70 run: | … … 69 74 git --version 70 75 svn --version 71 php --version72 php -i73 76 locale -a 74 77 75 - name: Install Node.js 76 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 77 with: 78 node-version-file: '.nvmrc' 79 cache: npm 80 81 - name: Install Dependencies 78 - name: Install npm Dependencies 82 79 run: npm ci 83 80 … … 88 85 run: | 89 86 npm run env:start 90 91 - name: General debug information92 run: |93 npm --version94 node --version95 curl --version96 git --version97 svn --version98 87 99 88 - name: Log running Docker containers -
trunk/.github/workflows/javascript-tests.yml
r54674 r54851 44 44 # Performs the following steps: 45 45 # - Checks out the repository. 46 # - Sets up Node.js. 46 47 # - Logs debug information about the GitHub Action runner. 47 # - Installs Node.js. 48 # - Logs updated debug information. 49 # _ Installs npm dependencies. 48 # - Installs npm dependencies. 50 49 # - Run the WordPress QUnit tests. 51 50 # - Ensures version-controlled files are not modified or deleted. … … 60 59 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 61 60 62 - name: Log debug information 63 run: | 64 npm --version 65 node --version 66 git --version 67 svn --version 68 69 - name: Install Node.js 61 - name: Set up Node.js 70 62 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 71 63 with: … … 77 69 npm --version 78 70 node --version 71 git --version 72 svn --version 79 73 80 - name: Install Dependencies74 - name: Install npm Dependencies 81 75 run: npm ci 82 76 -
trunk/.github/workflows/php-compatibility.yml
r54750 r54851 47 47 # - Logs debug information. 48 48 # - Configures caching for PHP compatibility scans. 49 # - Installs Composer dependencies (use cache if possible).49 # - Installs Composer dependencies. 50 50 # - Make Composer packages available globally. 51 # - Logs PHP_CodeSniffer debug information.52 51 # - Runs the PHP compatibility tests. 52 # - Generate a report for displaying issues as pull request annotations. 53 53 # - Ensures version-controlled files are not modified or deleted. 54 54 php-compatibility: … … 71 71 - name: Log debug information 72 72 run: | 73 php --version74 73 composer --version 75 74 … … 93 92 - name: Make Composer packages available globally 94 93 run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH 95 96 - name: Log PHPCS debug information97 run: phpcs -i98 94 99 95 - name: Run PHP compatibility tests -
trunk/.github/workflows/phpunit-tests.yml
r54674 r54851 37 37 # Performs the following steps: 38 38 # - Sets environment variables. 39 # - Sets up the environment variables needed for testing with memcached (if desired). 40 # - Installs Node.js. 39 # - Checks out the repository. 40 # - Sets up Node.js. 41 # - Logs general debug information about the runner. 41 42 # - Installs npm dependencies 42 43 # - Configures caching for Composer. … … 44 45 # - Logs Docker debug information (about the Docker installation within the runner). 45 46 # - Starts the WordPress Docker container. 46 # - Logs general debug information about the runner.47 47 # - Logs the running Docker containers. 48 # - Logs debug information from inside the WordPress Docker container.49 48 # - Logs debug information about what's installed within the WordPress Docker containers. 50 49 # - Install WordPress within the Docker container. … … 52 51 # - Ensures version-controlled files are not modified or deleted. 53 52 # - Checks out the WordPress Test reporter repository. 54 # - Reconnect the directory to the Git repository.55 53 # - Submit the test results to the WordPress.org host test results. 56 54 test-php: … … 109 107 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 110 108 111 - name: InstallNode.js109 - name: Set up Node.js 112 110 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 113 111 with: … … 115 113 cache: npm 116 114 117 - name: Install Dependencies 115 - name: General debug information 116 run: | 117 npm --version 118 node --version 119 curl --version 120 git --version 121 svn --version 122 123 - name: Install npm dependencies 118 124 run: npm ci 119 125 … … 155 161 run: | 156 162 npm run env:start 157 158 - name: General debug information159 run: |160 npm --version161 node --version162 curl --version163 git --version164 svn --version165 163 166 164 - name: Log running Docker containers -
trunk/.github/workflows/test-and-zip-default-themes.yml
r54740 r54851 50 50 # Performs the following steps: 51 51 # - Checks out the repository. 52 # - Installs Node.js (only when theme has a build process)53 # - Installs npm dependencies (only when theme has a build process)54 # - Runs the theme build script (only when theme has a build process)52 # - Sets up Node.js. 53 # - Installs npm dependencies. 54 # - Runs the theme build script. 55 55 # - Ensures version-controlled files are not modified or deleted. 56 56 test-build-scripts: … … 78 78 ref: ${{ github.event_name == 'workflow_dispatch' && inputs.branch || github.ref }} 79 79 80 - name: InstallNode.js80 - name: Set up Node.js 81 81 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 82 82 with: -
trunk/.github/workflows/test-coverage.yml
r54674 r54851 33 33 34 34 jobs: 35 # Sets up WordPress for testing or development use.35 # Runs the PHPUnit tests for WordPress. 36 36 # 37 37 # Performs the following steps: 38 38 # - Sets environment variables. 39 39 # - Checks out the repository. 40 # - Checks out the WordPress Importer plugin (needed for the Core PHPUnit tests). 41 # - Logs debug information about the GitHub Action runner. 42 # - Installs Node.js. 43 # _ Installs npm dependencies. 40 # - Sets up Node.js. 41 # - Logs general debug information about the runner. 42 # - Installs npm dependencies 43 # - Configures caching for Composer. 44 # - Installs Composer dependencies. 44 45 # - Logs Docker debug information (about the Docker installation within the runner). 45 46 # - Starts the WordPress Docker container. 46 # - Logs debug general information.47 47 # - Logs the running Docker containers. 48 # - Logs WordPress Docker container debug information.49 48 # - Logs debug information about what's installed within the WordPress Docker containers. 50 49 # - Install WordPress within the Docker container. … … 52 51 # - Ensures version-controlled files are not modified or deleted. 53 52 # - Upload the single site code coverage report to Codecov.io. 54 # - Run the PHPUnit tests as a multisite .53 # - Run the PHPUnit tests as a multisite installation. 55 54 # - Ensures version-controlled files are not modified or deleted. 56 55 # - Upload the multisite code coverage report to Codecov.io. … … 74 73 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 75 74 75 - name: Set up Node.js 76 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 77 with: 78 node-version-file: '.nvmrc' 79 cache: npm 80 76 81 - name: Log debug information 77 82 run: | … … 83 88 git --version 84 89 svn --version 85 php --version86 php -i87 90 locale -a 88 91 89 - name: Install Node.js 90 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 91 with: 92 node-version-file: '.nvmrc' 93 cache: npm 94 95 - name: Install Dependencies 92 - name: Install npm Dependencies 96 93 run: npm ci 97 94 … … 129 126 run: | 130 127 npm run env:start 131 132 - name: General debug information133 run: |134 npm --version135 node --version136 curl --version137 git --version138 svn --version139 128 140 129 - name: Log running Docker containers -
trunk/.github/workflows/test-npm.yml
r54674 r54851 42 42 # Performs the following steps: 43 43 # - Checks out the repository. 44 # - Sets up Node.js. 44 45 # - Logs debug information about the GitHub Action runner. 45 # - Installs Node.js. 46 # _ Installs npm dependencies. 46 # - Installs npm dependencies. 47 47 # - Builds WordPress to run from the `build` directory. 48 48 # - Cleans up after building WordPress to the `build` directory. … … 65 65 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 66 66 67 - name: Set up Node.js 68 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 69 with: 70 node-version-file: '.nvmrc' 71 cache: npm 72 67 73 - name: Log debug information 68 74 run: | … … 73 79 svn --version 74 80 75 - name: Install Node.js 76 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 77 with: 78 node-version-file: '.nvmrc' 79 cache: npm 80 81 - name: Install Dependencies 81 - name: Install npm Dependencies 82 82 run: npm ci 83 83 … … 107 107 # Performs the following steps: 108 108 # - Checks out the repository. 109 # - Sets up Node.js. 109 110 # - Logs debug information about the GitHub Action runner. 110 # - Installs Node.js. 111 # _ Installs npm dependencies. 111 # - Installs npm dependencies. 112 112 # - Builds WordPress to run from the `build` directory. 113 113 # - Cleans up after building WordPress to the `build` directory. … … 125 125 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 126 126 127 - name: Set up Node.js 128 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 129 with: 130 node-version-file: '.nvmrc' 131 cache: npm 132 127 133 - name: Log debug information 128 134 run: | … … 133 139 svn --version 134 140 135 - name: Install Node.js 136 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 137 with: 138 node-version-file: '.nvmrc' 139 cache: npm 140 141 - name: Install Dependencies 141 - name: Install npm Dependencies 142 142 run: npm ci 143 143
Note: See TracChangeset
for help on using the changeset viewer.