diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2023-11-20 18:20:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 18:20:16 +0100 |
commit | c98597eaf5e144ee5e549cb41984687cd1033068 (patch) | |
tree | d328816c792bdd8b60b553083bba66e5870ab26d /.github/workflows/node.js.yml | |
parent | fb0cc272916dc909552a1b7bc1a39295e564d3a8 (diff) | |
download | jquery-c98597eaf5e144ee5e549cb41984687cd1033068.tar.gz jquery-c98597eaf5e144ee5e549cb41984687cd1033068.zip |
Build: Reformat GitHub workflow Yaml files
Use Prettier 3.1.0 to reformat the Yaml files. This makes their format identical
to the one used on `3.x-stable`, making for much easier cherry-picks.
The main difference is the list under `steps:` was not indented while all other
lists were.
Closes gh-5364
Diffstat (limited to '.github/workflows/node.js.yml')
-rw-r--r-- | .github/workflows/node.js.yml | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 4cb132150..61d44d22a 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -44,42 +44,42 @@ jobs: NPM_SCRIPT: "test:browser" BROWSERS: "FirefoxHeadless" steps: - - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - name: Cache - uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock- + - name: Cache + uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-npm-lock- - - name: Use Node.js ${{ matrix.NODE_VERSION }} - uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 - with: - node-version: ${{ matrix.NODE_VERSION }} + - name: Use Node.js ${{ matrix.NODE_VERSION }} + uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 + with: + node-version: ${{ matrix.NODE_VERSION }} - - name: Install firefox ESR - run: | - export FIREFOX_SOURCE_URL='https://download.mozilla.org/?product=firefox-esr-latest&lang=en-US&os=linux64' - wget --no-verbose $FIREFOX_SOURCE_URL -O - | tar -jx -C ${HOME} - if: contains(matrix.NAME, 'Firefox ESR') + - name: Install firefox ESR + run: | + export FIREFOX_SOURCE_URL='https://download.mozilla.org/?product=firefox-esr-latest&lang=en-US&os=linux64' + wget --no-verbose $FIREFOX_SOURCE_URL -O - | tar -jx -C ${HOME} + if: contains(matrix.NAME, 'Firefox ESR') - - name: Install dependencies - run: npm install + - name: Install dependencies + run: npm install - - name: Install Playwright dependencies - run: npx playwright-webkit install-deps - if: matrix.NPM_SCRIPT == 'test:browser' && contains(matrix.BROWSERS, 'WebkitHeadless') + - name: Install Playwright dependencies + run: npx playwright-webkit install-deps + if: matrix.NPM_SCRIPT == 'test:browser' && contains(matrix.BROWSERS, 'WebkitHeadless') - - name: Lint code - run: npm run build:all && npm run lint - if: matrix.NODE_VERSION == '18.x' + - name: Lint code + run: npm run build:all && npm run lint + if: matrix.NODE_VERSION == '18.x' - - name: Run tests - env: - BROWSERS: ${{ matrix.BROWSERS }} - run: | - export PATH=${HOME}/firefox:$PATH - npm run ${{ matrix.NPM_SCRIPT }} + - name: Run tests + env: + BROWSERS: ${{ matrix.BROWSERS }} + run: | + export PATH=${HOME}/firefox:$PATH + npm run ${{ matrix.NPM_SCRIPT }} |