chore(deps): update dependency typescript to ^5.1.3 #361
Workflow file for this run
This file contains 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: | |
push: | |
branches: | |
- main | |
pull_request: | |
env: | |
NX_CLOUD_DISTRIBUTED_EXECUTION: true | |
NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT: 3 | |
NX_BRANCH: ${{ github.event.number || github.ref_name }} | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
jobs: | |
main: | |
name: Nx Cloud - Main Job | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
agent: [1, 2, 3, 4, 5] | |
steps: | |
- uses: actions/checkout@v3 | |
name: Checkout [Pull Request] | |
if: ${{ github.event_name == 'pull_request' }} | |
with: | |
# By default, PRs will be checked-out based on the Merge Commit, but we want the actual branch HEAD. | |
ref: ${{ github.event.pull_request.head.sha }} | |
# We need to fetch all branches and commits so that Nx affected has a base to compare against. | |
fetch-depth: 0 | |
- name: Log out the PR number | |
if: ${{ github.event_name == 'pull_request' }} | |
run: | | |
echo "PR sha: ${{ github.event.pull_request.head.sha }}" | |
- uses: actions/checkout@v3 | |
name: Checkout [Default Branch] | |
if: ${{ github.event_name != 'pull_request' }} | |
with: | |
# We need to fetch all branches and commits so that Nx affected has a base to compare against. | |
fetch-depth: 0 | |
- uses: pnpm/[email protected] | |
with: | |
version: 8.6.0 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Initialize the Nx Cloud distributed CI run | |
run: pnpm nx-cloud start-ci-run | |
- name: Format | |
run: pnpm format:check | |
- name: Build packages | |
run: pnpm build:pkgs | |
- name: Lint | |
run: pnpm lint | |
- name: Typecheck | |
run: pnpm typecheck | |
- name: Test | |
run: pnpm test:coverage | |
- name: Build | |
run: pnpm build | |
- name: Build storybook | |
run: pnpm build-storybook | |
- name: Stop all running agents for this CI run | |
if: ${{ always() }} | |
run: pnpm nx-cloud stop-all-agents | |
agents: | |
name: Agent ${{ matrix.agent }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
agent: | |
- [1, 2, 3] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: pnpm/[email protected] | |
with: | |
version: 8.6.0 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Start Nx Agent ${{ matrix.agent }} | |
run: pnpm nx-cloud start-agent | |
env: | |
NX_AGENT_NAME: ${{matrix.agent}} |