Fix: Can't display role names in content manager #124
This file contains hidden or 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: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| setup: | |
| name: 'setup (node ${{ matrix.node-version }})' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22, 24] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.18.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Cache setup | |
| id: setup-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| apps/*/node_modules | |
| packages/*/node_modules | |
| plugins/*/node_modules | |
| ~/.cache/ms-playwright | |
| packages/*/dist | |
| plugins/*/dist | |
| apps/*/dist | |
| key: ${{ runner.os }}-node${{ matrix.node-version }}-setup-${{ hashFiles('pnpm-lock.yaml', 'packages/**', 'plugins/**', 'apps/**') }} | |
| - name: Install dependencies | |
| if: steps.setup-cache.outputs.cache-hit != 'true' | |
| run: pnpm install --config.inject-workspace-packages=true --no-frozen-lockfile | |
| - name: Run build | |
| if: steps.setup-cache.outputs.cache-hit != 'true' | |
| run: pnpm run build | |
| lint: | |
| needs: [setup] | |
| name: 'lint (node ${{ matrix.node-version }})' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22, 24] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.18.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Restore setup | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| apps/*/node_modules | |
| packages/*/node_modules | |
| plugins/*/node_modules | |
| ~/.cache/ms-playwright | |
| packages/*/dist | |
| plugins/*/dist | |
| apps/*/dist | |
| key: ${{ runner.os }}-node${{ matrix.node-version }}-setup-${{ hashFiles('pnpm-lock.yaml', 'packages/**', 'plugins/**', 'apps/**') }} | |
| - name: Run linting | |
| run: pnpm run lint | |
| typescript: | |
| needs: [setup] | |
| name: 'typescript (node ${{ matrix.node-version }})' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22, 24] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.18.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Restore setup | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| apps/*/node_modules | |
| packages/*/node_modules | |
| plugins/*/node_modules | |
| ~/.cache/ms-playwright | |
| packages/*/dist | |
| plugins/*/dist | |
| apps/*/dist | |
| key: ${{ runner.os }}-node${{ matrix.node-version }}-setup-${{ hashFiles('pnpm-lock.yaml', 'packages/**', 'plugins/**', 'apps/**') }} | |
| - name: Run TypeScript checks | |
| run: pnpm run lint:ts | |
| test-integration-sqlite: | |
| needs: [setup, lint, typescript] | |
| name: 'test:integration:sqlite (node ${{ matrix.node-version }})' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22, 24] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.18.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Restore setup | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| apps/*/node_modules | |
| packages/*/node_modules | |
| plugins/*/node_modules | |
| ~/.cache/ms-playwright | |
| packages/*/dist | |
| plugins/*/dist | |
| apps/*/dist | |
| key: ${{ runner.os }}-node${{ matrix.node-version }}-setup-${{ hashFiles('pnpm-lock.yaml', 'packages/**', 'plugins/**', 'apps/**') }} | |
| - name: Run integration tests | |
| run: pnpm run test:integration | |
| test-integration-postgres: | |
| needs: [setup, lint, typescript] | |
| name: 'test:integration:postgres (node ${{ matrix.node-version }})' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22, 24] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.18.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Restore setup | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| apps/*/node_modules | |
| packages/*/node_modules | |
| plugins/*/node_modules | |
| ~/.cache/ms-playwright | |
| packages/*/dist | |
| plugins/*/dist | |
| apps/*/dist | |
| key: ${{ runner.os }}-node${{ matrix.node-version }}-setup-${{ hashFiles('pnpm-lock.yaml', 'packages/**', 'plugins/**', 'apps/**') }} | |
| - name: Run integration tests | |
| run: pnpm run test:integration:postgres | |
| test-integration-mysql: | |
| needs: [setup, lint, typescript] | |
| name: 'test:integration:mysql (node ${{ matrix.node-version }})' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22, 24] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.18.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Restore setup | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| apps/*/node_modules | |
| packages/*/node_modules | |
| plugins/*/node_modules | |
| ~/.cache/ms-playwright | |
| packages/*/dist | |
| plugins/*/dist | |
| apps/*/dist | |
| key: ${{ runner.os }}-node${{ matrix.node-version }}-setup-${{ hashFiles('pnpm-lock.yaml', 'packages/**', 'plugins/**', 'apps/**') }} | |
| - name: Run integration tests | |
| run: pnpm run test:integration:mysql | |
| test-e2e-sqlite: | |
| needs: [setup, lint, typescript] | |
| name: 'test:e2e:sqlite (node ${{ matrix.node-version }})' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22, 24] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.18.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Restore setup | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| apps/*/node_modules | |
| packages/*/node_modules | |
| plugins/*/node_modules | |
| ~/.cache/ms-playwright | |
| packages/*/dist | |
| plugins/*/dist | |
| apps/*/dist | |
| key: ${{ runner.os }}-node${{ matrix.node-version }}-setup-${{ hashFiles('pnpm-lock.yaml', 'packages/**', 'plugins/**', 'apps/**') }} | |
| - name: Run e2e tests | |
| run: pnpm run test:e2e | |
| - uses: actions/upload-artifact@v4 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-report-node${{ matrix.node-version }}-sqlite | |
| path: '**/playwright-report/' | |
| retention-days: 30 | |
| test-e2e-postgres: | |
| needs: [setup, lint, typescript] | |
| name: 'test:e2e:postgres (node ${{ matrix.node-version }})' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22, 24] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.18.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Restore setup | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| apps/*/node_modules | |
| packages/*/node_modules | |
| plugins/*/node_modules | |
| ~/.cache/ms-playwright | |
| packages/*/dist | |
| plugins/*/dist | |
| apps/*/dist | |
| key: ${{ runner.os }}-node${{ matrix.node-version }}-setup-${{ hashFiles('pnpm-lock.yaml', 'packages/**', 'plugins/**', 'apps/**') }} | |
| - name: Run e2e tests | |
| run: pnpm run test:e2e:postgres | |
| - uses: actions/upload-artifact@v4 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-report-node${{ matrix.node-version }}-postgres | |
| path: '**/playwright-report/' | |
| retention-days: 30 | |
| test-e2e-mysql: | |
| needs: [setup, lint, typescript] | |
| name: 'test:e2e:mysql (node ${{ matrix.node-version }})' | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22, 24] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.18.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Restore setup | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| node_modules | |
| apps/*/node_modules | |
| packages/*/node_modules | |
| plugins/*/node_modules | |
| ~/.cache/ms-playwright | |
| packages/*/dist | |
| plugins/*/dist | |
| apps/*/dist | |
| key: ${{ runner.os }}-node${{ matrix.node-version }}-setup-${{ hashFiles('pnpm-lock.yaml', 'packages/**', 'plugins/**', 'apps/**') }} | |
| - name: Run e2e tests | |
| run: pnpm run test:e2e:mysql | |
| - uses: actions/upload-artifact@v4 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-report-node${{ matrix.node-version }}-mysql | |
| path: '**/playwright-report/' | |
| retention-days: 30 |