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

ci(ga): remove broken NX agents #83

Merged
merged 1 commit into from
Mar 24, 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
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
Loading