fix(whotracksme): await for related organization models (#2848) #3599
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] | |
| pull_request: | |
| branches: [main] | |
| types: [opened, synchronize, reopened, labeled] | |
| workflow_dispatch: | |
| inputs: | |
| flags: | |
| description: 'Feature flag names (comma separated)' | |
| required: false | |
| type: string | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version-file: '.tool-versions' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: npm run lint | |
| e2e: | |
| needs: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version-file: '.tool-versions' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Test - Chrome | |
| run: npm run wdio -- --target=chrome ${{ github.event.inputs.flags && format('--flags={0}', github.event.inputs.flags) || '' }} | |
| - name: Test - Firefox | |
| run: npm run wdio -- --target=firefox ${{ github.event.inputs.flags && format('--flags={0}', github.event.inputs.flags) || '' }} | |
| e2e-update: | |
| needs: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version-file: '.tool-versions' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Test - Chrome | |
| run: npm run wdio:update -- --target=chrome ${{ github.event.inputs.flags && format('--flags={0}', github.event.inputs.flags) || '' }} | |
| - name: Test - Firefox | |
| run: npm run wdio:update -- --target=firefox ${{ github.event.inputs.flags && format('--flags={0}', github.event.inputs.flags) || '' }} | |
| e2e-package: | |
| needs: [e2e, e2e-update] | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'package') | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version-file: '.tool-versions' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Test - Chrome | |
| run: npm run wdio -- --target=chrome | |
| - name: Test - Firefox | |
| run: npm run wdio -- --target=firefox |