Skip to content

Upgrade esbuild-loader and @craco/craco #143

Upgrade esbuild-loader and @craco/craco

Upgrade esbuild-loader and @craco/craco #143

Workflow file for this run

name: Node.js CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
# Test default react-scripts to compare time
test-react-scripts:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 6.24.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Compile create-react-app examples using react-scripts
run: |
pnpm run build-react-scripts --filter "with-*"
- name: Test create-react-app examples using react-scripts
run: |
pnpm run test-react-scripts --filter "with-*"
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2
with:
version: 6.24.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Compile create-react-app examples using craco
run: |
pnpm run build --filter "with-*"
- name: Test create-react-app examples using craco
run: |
pnpm run test --filter "with-*"