Skip to content

Commit

Permalink
chore: update ci (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
martines3000 authored Mar 26, 2024
1 parent 44bdb90 commit 0cf1928
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 44 deletions.
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

0 comments on commit 0cf1928

Please sign in to comment.