Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update ci #612

Merged
merged 5 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 17 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,20 @@ on:

jobs:
main:
name: Nx Cloud - Main Job
uses: nrwl/ci/.github/workflows/[email protected]
secrets:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
with:
pnpm-version: 8.11.0
node-version: 20.10.0
number-of-agents: 4
main-branch-name: 'develop'
parallel-commands-on-agents: |
pnpm exec nx run-many --target=lint --parallel=4
pnpm exec nx run-many --target=test:ci --parallel=4
pnpm exec nx run-many --target=build --parallel=4

agents:
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/[email protected]
secrets:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
with:
number-of-agents: 4
pnpm-version: 8.11.0
node-version: 20.10.0
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
- name: Install node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org/
cache: 'pnpm'
- name: Set up nx-cloud
run: npx nx-cloud start-ci-run --distribute-on="4 linux-medium-js"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- run: pnpm nx run-many --target=build,lint,test:ci
38 changes: 17 additions & 21 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,20 @@ on:

jobs:
main:
name: Nx Cloud - Cron Job
uses: nrwl/ci/.github/workflows/[email protected]
secrets:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
with:
pnpm-version: 8.11.0
node-version: 20.10.0
number-of-agents: 2
main-branch-name: 'develop'
parallel-commands-on-agents: |
pnpm exec nx run-many --target=test:cron --parallel=2

agents:
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/[email protected]
secrets:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
with:
number-of-agents: 2
pnpm-version: 8.11.0
node-version: 20.10.0
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
- name: Install node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: https://registry.npmjs.org/
cache: 'pnpm'
- name: Set up nx-cloud
run: npx nx-cloud start-ci-run --distribute-on="4 linux-medium-js" --stop-agents-after="test:ci"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- run: pnpm nx run-many --target=test:cron
Loading