[Doc] Fix mutationMode
reference in create
documentation
#8863
Workflow file for this run
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
name: 'Test - action' | |
on: | |
push: | |
branches: | |
- master | |
- next | |
pull_request: | |
jobs: | |
typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn | |
- name: Lint | |
run: make lint | |
- name: Build | |
run: make build | |
- name: Zip packages build artifact | |
run: zip packages-build.zip -r examples/data-generator/dist packages/*/dist | |
- name: Upload packages build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: packages-build | |
path: packages-build.zip | |
retention-days: 1 | |
simple-example-typecheck: | |
runs-on: ubuntu-latest | |
needs: [typecheck] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn | |
- name: Download packages build artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: packages-build | |
- name: Unzip packages build artifact | |
run: unzip -o -u packages-build.zip | |
- name: Type check simple example | |
run: cd examples/simple && yarn type-check | |
doc-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Jekyll build | |
run: docker run -v="${PWD}/docs:/site" bretfisher/jekyll build | |
unit-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn | |
- name: Unit Tests | |
run: make test-unit | |
env: | |
CI: true | |
e2e-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn | |
- name: e2e Tests | |
run: make test-e2e | |
env: | |
CI: true | |
e-commerce: | |
runs-on: ubuntu-latest | |
needs: [typecheck] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn | |
- name: Download packages build artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: packages-build | |
- name: Unzip packages build artifact | |
run: unzip -o -u packages-build.zip | |
- name: Build e-commerce | |
run: make build-demo | |
env: | |
# Needed as workaround for Vite https://github.com/vitejs/vite/issues/2433#issuecomment-831399876 | |
# value = (your memory in GiB, 6.51 for GH Actions) * 1024 - 512 | |
NODE_OPTIONS: '--max-old-space-size=6163' | |
- name: Zip demo build | |
run: zip demo-build.zip -r examples/demo/dist examples/demo/package.json | |
- name: Upload demo build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: demo-build | |
path: demo-build.zip | |
retention-days: 1 | |
crm: | |
runs-on: ubuntu-latest | |
needs: [typecheck] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn | |
- name: Download packages build artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: packages-build | |
- name: Unzip packages build artifact | |
run: unzip -o -u packages-build.zip | |
- name: Build crm | |
run: make build-crm | |
greenframe: | |
runs-on: ubuntu-latest | |
name: GreenFrame | |
needs: [e-commerce] | |
if: success() && github.ref == 'refs/heads/master' | |
steps: | |
# To use this repository's private action, | |
# you must check out the repository | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 # Fetch HEAD^ to enable git comparison | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn | |
- name: Download demo build | |
uses: actions/download-artifact@v4 | |
with: | |
name: demo-build | |
- name: Unzip demo build | |
run: unzip -o -u demo-build.zip | |
- name: Run e-commerce | |
# Run the demo in production mode | |
run: cd ./examples/demo/dist && python3 -m http.server 4173 & | |
- name: Run GreenFrame Analysis | |
uses: marmelab/[email protected] | |
env: | |
GREENFRAME_SECRET_TOKEN: ${{secrets.GREENFRAME_SECRET_TOKEN}} | |
create-react-admin: | |
runs-on: ubuntu-latest | |
name: create-react-admin | |
needs: [] | |
if: success() && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/next') | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn | |
- name: Build create-react-admin | |
run: make build-create-react-admin install | |
- name: Create new project | |
run: ./node_modules/.bin/create-react-admin myadmin --data-provider ra-data-fakerest --auth-provider local-auth-provider --install npm | |
- name: Run the tests | |
working-directory: ./myadmin | |
run: npm run test |