Bump webpack from 5.91.0 to 5.94.0 in the npm_and_yarn group across 1 directory #359
This file contains 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
# GitHub does not support YAML anchors, so we can't just dedupe common | |
# steps https://github.community/t/support-for-yaml-anchors/16128 | |
name: CI | |
on: [pull_request] | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache node_modules | |
uses: actions/cache@v2 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-tests-node-modules-${{ github.sha }} | |
- name: Cache Cypress | |
uses: actions/cache@v2 | |
with: | |
path: "/home/runner/.cache/Cypress" | |
key: ${{ runner.os }}-tests-cypress-${{ github.sha }} | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: "npm" | |
node-version: ${{ matrix.node }} | |
- name: Cache build | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-build | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: build | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('build') }} }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: npm install | |
run: npm install --immutable | |
build: | |
needs: setup | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache node_modules | |
uses: actions/cache@v2 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-tests-node-modules-${{ github.sha }} | |
- name: Cache Cypress | |
uses: actions/cache@v2 | |
with: | |
path: "/home/runner/.cache/Cypress" | |
key: ${{ runner.os }}-tests-cypress-${{ github.sha }} | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: "npm" | |
node-version: ${{ matrix.node }} | |
- name: Cache build | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-build | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: build | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('build') }} }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Check build | |
env: | |
CI: | |
false # This is needed because node throws console.warn messages that | |
# get treated as errors in CI | |
run: | | |
DISABLE_ESLINT_PLUGIN=true npm run build | |
if [ -d "./build" ]; then | |
echo "Build dir exists" | |
exit 0 | |
else | |
exit 1 | |
fi | |
test: | |
needs: setup | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache node_modules | |
uses: actions/cache@v2 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-tests-node-modules-${{ github.sha }} | |
- name: Cache Cypress | |
uses: actions/cache@v2 | |
with: | |
path: "/home/runner/.cache/Cypress" | |
key: ${{ runner.os }}-tests-cypress-${{ github.sha }} | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: "npm" | |
node-version: ${{ matrix.node }} | |
- name: Cache build | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-build | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: build | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('build') }} }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Test | |
run: npm run test | |
env: | |
CI: true | |
e2e: | |
needs: setup | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache node_modules | |
uses: actions/cache@v2 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-tests-node-modules-${{ github.sha }} | |
- name: Cache Cypress | |
uses: actions/cache@v2 | |
with: | |
path: "/home/runner/.cache/Cypress" | |
key: ${{ runner.os }}-tests-cypress-${{ github.sha }} | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
cache: "npm" | |
node-version: ${{ matrix.node }} | |
- name: Cache build | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-build | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: build | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('build') }} }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: e2e | |
run: npm run e2e | |
env: | |
CI: | |
false # This is needed because node throws console.warn messages that | |
# get treated as errors in CI |