Skip to content

Commit

Permalink
ci(ga): remove broken NX agents (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
gund committed Mar 24, 2024
1 parent fe24b5c commit 4584a22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 59 deletions.
32 changes: 1 addition & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
workflow_dispatch:

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

jobs:
Expand Down Expand Up @@ -50,8 +50,6 @@ jobs:
git config user.name "${{ env.GIT_USER }}"
- name: Install Deps
run: npm ci --ignore-scripts
- name: Start Agents
run: npx nx-cloud start-ci-run
- name: Release Latest
if: ${{ env.RELEASE_BRANCH == 'master' }}
run: npm run release
Expand All @@ -64,31 +62,3 @@ jobs:
- name: Release Error Log
if: failure()
run: cat lerna-debug.log
- name: Stop Agents
if: always()
run: npx nx-cloud stop-all-agents
agents:
runs-on: ubuntu-latest
name: Agents
if: ${{ github.event.workflow_run.conclusion == 'success' }}
timeout-minutes: 60
strategy:
matrix:
agent: [1, 2, 3]
env:
RELEASE_BRANCH: ${{ github.event.workflow_run.head_branch }}
steps:
- uses: actions/setup-node@v2
- uses: actions/checkout@v2
with:
ref: ${{ env.RELEASE_BRANCH }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: npm-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
npm-node-
- name: Install Deps
run: npm ci --ignore-scripts
- name: Start Nx Agent ${{ matrix.agent }}
run: npx nx-cloud start-agent
29 changes: 1 addition & 28 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:
contents: read

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

jobs:
Expand All @@ -40,36 +40,9 @@ jobs:
npm-node-
- name: Install Deps
run: npm ci --ignore-scripts
- name: Start Agents
run: npx nx-cloud start-ci-run
- name: Test
run: npm run affected:test -- --parallel
- name: Lint
run: npm run affected:lint -- --parallel
- name: Build
run: npm run affected:build -- --parallel
- name: Stop Agents
if: always()
run: npx nx-cloud stop-all-agents
agents:
runs-on: ubuntu-latest
name: Agents
timeout-minutes: 60
strategy:
matrix:
agent: [1, 2, 3]
steps:
- uses: actions/setup-node@v2
- uses: actions/checkout@v2
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: npm-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
npm-node-
- name: Install Deps
run: npm ci --ignore-scripts
- name: Start Nx Agent ${{ matrix.agent }}
run: npx nx-cloud start-agent

0 comments on commit 4584a22

Please sign in to comment.