Changeset 55357 for branches/6.1/.github/workflows/test-npm.yml
- Timestamp:
- 02/17/2023 07:51:16 AM (3 years ago)
- File:
-
- 1 edited
-
branches/6.1/.github/workflows/test-npm.yml (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.1/.github/workflows/test-npm.yml
r54680 r55357 1 name: Test NPM1 name: Test npm 2 2 3 3 on: … … 16 16 - '[4-9].[0-9]' 17 17 paths: 18 # These files configure NPM. Changes could affect the outcome.18 # These files configure npm. Changes could affect the outcome. 19 19 - 'package*.json' 20 # JavaScript files are built using NPM.20 # JavaScript files are built using npm. 21 21 - '**.js' 22 # CSS and SCSS files are built using NPM.22 # CSS and SCSS files are built using npm. 23 23 - '**.scss' 24 24 - '**.css' … … 38 38 39 39 jobs: 40 # Verifies that installing NPMdependencies and building WordPress works as expected.40 # Verifies that installing npm dependencies and building WordPress works as expected. 41 41 # 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 NodeJS. 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. … … 52 52 # - Ensures version-controlled files are not modified or deleted. 53 53 test-npm: 54 name: Test NPMon ${{ matrix.os }}54 name: Test npm on ${{ matrix.os }} 55 55 runs-on: ${{ matrix.os }} 56 56 timeout-minutes: 20 … … 63 63 steps: 64 64 - name: Checkout repository 65 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 65 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 66 67 - name: Set up Node.js 68 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 69 with: 70 node-version-file: '.nvmrc' 71 cache: npm 66 72 67 73 - name: Log debug information … … 73 79 svn --version 74 80 75 - name: Install NodeJS 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 … … 100 100 run: git diff --exit-code 101 101 102 # Verifies that installing NPMdependencies and building WordPress works as expected on MacOS.102 # Verifies that installing npm dependencies and building WordPress works as expected on MacOS. 103 103 # 104 104 # This is separate from the job above in order to use stricter conditions about when to run. 105 105 # This avoids unintentionally consuming excessive minutes, as MacOS jobs consume minutes at a 10x rate. 106 106 # 107 # The `matrix` and `runner` contexts are not available for use within `if` expressions. So there is 108 # currently no way to determine the OS being used on a given job. 109 # See https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability. 110 # 107 111 # Performs the following steps: 108 112 # - Checks out the repository. 113 # - Sets up Node.js. 109 114 # - Logs debug information about the GitHub Action runner. 110 # - Installs NodeJS. 111 # _ Installs NPM dependencies. 115 # - Installs npm dependencies. 112 116 # - Builds WordPress to run from the `build` directory. 113 117 # - Cleans up after building WordPress to the `build` directory. … … 117 121 # - Ensures version-controlled files are not modified or deleted. 118 122 test-npm-macos: 119 name: Test NPMon MacOS123 name: Test npm on MacOS 120 124 runs-on: macos-latest 121 125 timeout-minutes: 30 … … 123 127 steps: 124 128 - name: Checkout repository 125 uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 129 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 130 131 - name: Set up Node.js 132 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 133 with: 134 node-version-file: '.nvmrc' 135 cache: npm 126 136 127 137 - name: Log debug information … … 133 143 svn --version 134 144 135 - name: Install NodeJS 136 uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1 137 with: 138 node-version-file: '.nvmrc' 139 cache: npm 140 141 - name: Install Dependencies 145 - name: Install npm Dependencies 142 146 run: npm ci 143 147 … … 189 193 steps: 190 194 - name: Dispatch workflow run 191 uses: actions/github-script@ 100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2195 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 192 196 with: 193 197 retries: 2
Note: See TracChangeset
for help on using the changeset viewer.