Skip to content

Commit

Permalink
libs changed, 16 agents
Browse files Browse the repository at this point in the history
  • Loading branch information
sndrs committed Jul 7, 2023
1 parent 2cd26ff commit cfca3c3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/distributed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,34 @@ on:
pull_request:

env:
# NX_CLOUD_DISTRIBUTED_EXECUTION: true
NX_CLOUD_DISTRIBUTED_EXECUTION: true
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

# keep this number in sync with the number of agents in the matrix below
# NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT: 16
NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT: 16

jobs:
# agents:
# name: Nx Cloud Agents
# runs-on: ubuntu-latest
# timeout-minutes: 60
# strategy:
# matrix:
# # keep this array in sync with the number of agents in
# # NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT above
# agent: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
# steps:
# - uses: actions/checkout@v3
# - uses: pnpm/action-setup@v2.2.4
# - uses: actions/setup-node@v3
# with:
# node-version-file: '.nvmrc'
# cache: 'pnpm'
# - run: pnpm install --frozen-lockfile
# - name: Start Nx Agent ${{ matrix.agent }}
# run: pnpm nx-cloud start-agent
# env:
# NX_AGENT_NAME: ${{matrix.agent}}
agents:
name: Nx Cloud Agents
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
# keep this array in sync with the number of agents in
# NX_CLOUD_DISTRIBUTED_EXECUTION_AGENT_COUNT above
agent: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.4
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- name: Start Nx Agent ${{ matrix.agent }}
run: pnpm nx-cloud start-agent
env:
NX_AGENT_NAME: ${{matrix.agent}}

pr:
runs-on: ubuntu-latest
Expand All @@ -51,6 +51,6 @@ jobs:
node-version-file: '.nvmrc'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
# - run: pnpm nx-cloud start-ci-run
- run: pnpm nx-cloud start-ci-run
- run: pnpm nx run-many -t test lint build e2e build-storybooks
# - run: pnpm nx-cloud stop-all-agents
- run: pnpm nx-cloud stop-all-agents
2 changes: 1 addition & 1 deletion libs/@guardian/libs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ export { storage } from './storage/storage';

export type { Switches } from './switches/@types/Switches';
export { getSwitches } from './switches/getSwitches';
console.log('this is n0t here');
console.log('this is not here');

0 comments on commit cfca3c3

Please sign in to comment.