feat: add access settings UI for IP whitelist #1629
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: CI | |
| on: | |
| # Triggers the workflow on push or pull request events but only for the main branch | |
| pull_request: | |
| branches: [main, 'main-ee', release*, 'temporary/**'] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| checker: | |
| runs-on: ubuntu-latest | |
| if: ${{ !contains(github.event.pull_request.title, '[skip checker]') }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| uses: ./.github/actions/catch-install-pnpm | |
| - name: Code lint checker | |
| run: pnpm checker | |
| test: | |
| runs-on: ubuntu-latest | |
| if: ${{ !contains(github.event.pull_request.title, '[skip checker]') }} | |
| strategy: | |
| matrix: | |
| shard: [1, 2, 3, 4] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| uses: ./.github/actions/catch-install-pnpm | |
| - name: Coverage test report | |
| run: sh ./scripts/jest/run-ci.sh ${{ matrix.shard }} ${{ strategy.job-total }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-artifacts-${{ matrix.shard }} | |
| path: coverage/ | |
| report: | |
| runs-on: ubuntu-latest | |
| if: ${{ !contains(github.event.pull_request.title, '[skip checker]') }} | |
| needs: [test] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Get Coverage 1 | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: coverage-artifacts-1 | |
| path: coverage | |
| - name: Get Coverage 2 | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: coverage-artifacts-2 | |
| path: coverage | |
| - name: Get Coverage 3 | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: coverage-artifacts-3 | |
| path: coverage | |
| - name: Get Coverage 4 | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: coverage-artifacts-4 | |
| path: coverage | |
| - name: Install dependencies | |
| uses: ./.github/actions/catch-install-pnpm | |
| - name: Merge coverage reports | |
| run: node ./scripts/jest/merge-report-json.js | |
| - name: Coverage test report | |
| uses: ArtiomTr/jest-coverage-report-action@v2 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| base-coverage-file: coverage-merged.json | |
| coverage-file: coverage-merged.json | |
| - name: Delete artifact | |
| uses: geekyeggo/delete-artifact@v5 | |
| with: | |
| name: | | |
| coverage-artifacts-1 | |
| coverage-artifacts-2 | |
| coverage-artifacts-3 | |
| coverage-artifacts-4 |