feat: add support for custom router state serializer #1243
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 | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: {} | |
| concurrency: | |
| # Group concurrency on workflow, then: | |
| # - Is merge run? Group on branch name (`refs/heads/main`) | |
| # - Is pull request? Group on pull request branch name, for example `feat/add-awesome-feature` | |
| group: >- | |
| ${{ github.workflow }}-${{ | |
| github.event_name == 'push' | |
| && github.ref | |
| || github.head_ref | |
| }} | |
| # Run merge workflows in sequence to prevent parallel deployments and releases | |
| # Cancel stale pull request runs in progress for the same branch | |
| cancel-in-progress: ${{ github.event_name != 'push' }} | |
| env: | |
| is-merge-to-main: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | |
| NODE_OPTIONS: --max-old-space-size=6144 | |
| jobs: | |
| format: | |
| name: Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out source code | |
| uses: actions/checkout@v4 | |
| with: | |
| # Required by nrwl/nx-set-shas | |
| fetch-depth: 0 | |
| - name: Derive appropriate SHAs for base and head for `nx affected` commands | |
| uses: nrwl/nx-set-shas@v4 | |
| - name: Set up Node.js and Yarn | |
| uses: ./.github/actions/setup-node | |
| - name: Check formatting | |
| run: yarn nx format:check | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out source code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js and Yarn | |
| uses: ./.github/actions/setup-node | |
| - name: Lint all projects | |
| run: yarn lint | |
| dead-code: | |
| name: Dead code analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out source code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js and Yarn | |
| uses: ./.github/actions/setup-node | |
| - name: Dead code analysis | |
| run: yarn knip | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out source code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js and Yarn | |
| uses: ./.github/actions/setup-node | |
| - name: Test | |
| run: yarn test --ci --reporters=github-actions | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out source code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js and Yarn | |
| uses: ./.github/actions/setup-node | |
| - name: Build | |
| run: yarn build | |
| - name: '[Merge] Upload package bundles' | |
| if: ${{ env.is-merge-to-main == 'true' }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ngworker-router-component-store | |
| path: | | |
| dist/packages/router-component-store | |
| dist/packages/router-signal-store | |
| if-no-files-found: error | |
| retention-days: 7 |