chore: Upgrade mermaid-cli library #27
Workflow file for this run
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: "Check and build" | |
| on: | |
| push: | |
| branches: | |
| - feat/CRC-28/migration | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/actions/install | |
| id: install | |
| # NOTE: Ideally, the cache should be saved again after each job, but it is not working as expected. The error "Unable to reserve cache with key X. Another job may be creating this cache" | |
| # This produce that the cache is only saved the first time we push to the branch. Every consequent modification produces tasks to be re executed always. | |
| - name: Nx cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: .nx | |
| key: nx-cache-lint-${{ github.ref }} | |
| - name: Lint | |
| run: NX_REJECT_UNKNOWN_LOCAL_CACHE=0 pnpm nx run-many --target=lint --all | |
| check-spell: | |
| name: Check spelling | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/actions/install | |
| id: install | |
| - name: Nx cache | |
| id: cache-nx | |
| uses: actions/cache@v4 | |
| with: | |
| path: .nx | |
| key: nx-cache-check-spell-${{ github.ref }} | |
| restore-keys: | | |
| nx-cache-lint-${{ github.ref }} | |
| - name: Derive appropriate SHAs for base and head for `nx affected` commands | |
| if: github.event_name == 'pull_request' | |
| uses: nrwl/nx-set-shas@v2 | |
| with: | |
| main-branch-name: ${{ github.event.pull_request.base.ref }} | |
| - name: Check spelling - Affected | |
| if: github.event_name != 'pull_request' | |
| run: NX_REJECT_UNKNOWN_LOCAL_CACHE=0 pnpm nx run-many --target=check:spell --all | |
| - name: Check spelling | |
| if: github.event_name == 'pull_request' | |
| run: NX_REJECT_UNKNOWN_LOCAL_CACHE=0 pnpm nx affected -t check:spell --base=origin/${{ github.event.pull_request.base.ref }} --head=HEAD | |
| check-types: | |
| name: Check types | |
| runs-on: ubuntu-latest | |
| needs: check-spell | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/actions/install | |
| id: install | |
| - name: Nx cache | |
| id: cache-nx | |
| uses: actions/cache@v4 | |
| with: | |
| path: .nx | |
| key: nx-cache-check-types-${{ github.ref }} | |
| restore-keys: | | |
| nx-cache-check-spell-${{ github.ref }} | |
| - name: Check types | |
| run: NX_REJECT_UNKNOWN_LOCAL_CACHE=0 pnpm nx run-many --target=check:types --all | |
| test-unit: | |
| name: Test unit | |
| runs-on: ubuntu-latest | |
| needs: check-types | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/actions/install | |
| id: install | |
| - name: Nx cache | |
| id: cache-nx | |
| uses: actions/cache@v4 | |
| with: | |
| path: .nx | |
| key: nx-cache-test-unit-${{ github.ref }} | |
| restore-keys: | | |
| nx-cache-check-types-${{ github.ref }} | |
| - name: Test unit | |
| run: NX_REJECT_UNKNOWN_LOCAL_CACHE=0 pnpm nx run-many --target=test:unit --all | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| needs: test-unit | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/actions/install | |
| id: install | |
| - name: Nx cache | |
| id: cache-nx | |
| uses: actions/cache@v4 | |
| with: | |
| path: .nx | |
| key: nx-cache-build-${{ github.ref }} | |
| restore-keys: | | |
| nx-cache-test-unit-${{ github.ref }} | |
| - name: Build | |
| run: NX_REJECT_UNKNOWN_LOCAL_CACHE=0 pnpm nx run-many --target=build --all | |
| test-component: | |
| name: Test component | |
| runs-on: ubuntu-latest | |
| needs: test-unit | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| - uses: ./.github/actions/install | |
| id: install | |
| - name: Nx cache | |
| id: cache-nx | |
| uses: actions/cache@v4 | |
| with: | |
| path: .nx | |
| key: nx-cache-test-component-${{ github.ref }} | |
| restore-keys: | | |
| nx-cache-build-${{ github.ref }} | |
| - name: Test component | |
| run: NX_REJECT_UNKNOWN_LOCAL_CACHE=0 pnpm nx run-many --target=test:component --all |