Fix Datagrid header tooltip sometimes indicates the wrong sort order #9198
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 | |
tags: | |
- '*' | |
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 | |
if: github.ref_type != 'tag' | |
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 | |
if: github.ref_type != 'tag' | |
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 | |
if: github.ref_type != 'tag' | |
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: github.event_name == 'push' && github.ref_type == 'tag' && github.ref_name == 'refs/tags/v*' && !contains('beta', github.ref_name) && !contains('alpha', github.ref_name) | |
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 | |
update-sandbox-repository: | |
runs-on: ubuntu-latest | |
# Only run on new tags that target a release (not latest nor next) and avoid alpha and beta tags | |
if: github.event_name == 'push' && github.ref_type == 'tag' && github.ref_name == 'refs/tags/v*' && !contains('beta', github.ref_name) && !contains('alpha', github.ref_name) | |
needs: [typecheck, simple-example-typecheck, unit-test, e2e-test] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Update Sandbox Repository | |
env: | |
SSH_SANDBOX_DEPLOY_KEY: ${{ secrets.SSH_SANDBOX_DEPLOY_KEY }} | |
SANDBOX_REPOSITORY: ${{ secrets.SANDBOX_REPOSITORY }} | |
run: make update-sandbox |