-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'alpha' into feature/5054
- Loading branch information
Showing
53 changed files
with
287 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,15 @@ name: pr | |
on: [pull_request] | ||
env: | ||
NX_DAEMON: false | ||
NX_VERBOSE_LOGGING: true | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
jobs: | ||
test: | ||
name: 'Test' | ||
agent: | ||
name: 'Nx Cloud Agents' | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
strategy: | ||
matrix: | ||
agent: [1, 2, 3, 4] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
|
@@ -19,20 +22,14 @@ jobs: | |
version: 7 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.19.0 | ||
node-version: 18.16.0 | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --filter "./packages/**" --filter query --prefer-offline install | ||
- name: Run Tests | ||
uses: nick-fields/[email protected] | ||
with: | ||
command: pnpm test:lib --base=${{ github.event.pull_request.base.sha }} | ||
timeout_minutes: 5 | ||
max_attempts: 3 | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
lint: | ||
name: 'Lint' | ||
- name: Start Nx Agent ${{ matrix.agent }} | ||
run: npx nx-cloud start-agent | ||
orchestrator: | ||
name: 'Nx Cloud Orchestrator' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -45,30 +42,29 @@ jobs: | |
version: 7 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.14.2 | ||
node-version: 18.16.0 | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --filter "./packages/**" --filter query --prefer-offline install | ||
- run: pnpm run test:eslint --base=${{ github.event.pull_request.base.sha }} | ||
typecheck: | ||
name: 'Typecheck' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref }} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
- uses: actions/setup-node@v3 | ||
- name: Derive appropriate SHAs for base and head for `nx affected` commands | ||
uses: nrwl/nx-set-shas@v2 | ||
- run: | | ||
echo "BASE: ${{ env.NX_BASE }}" | ||
echo "HEAD: ${{ env.NX_HEAD }}" | ||
- name: Start CI Orchestrator | ||
run: npx nx-cloud start-ci-run | ||
- name: Run All Checks | ||
uses: nick-fields/[email protected] | ||
env: | ||
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} | ||
with: | ||
node-version: 16.14.2 | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --filter "./packages/**" --filter query --prefer-offline install | ||
- run: pnpm run test:types --base=${{ github.event.pull_request.base.sha }} | ||
timeout_minutes: 5 | ||
max_attempts: 3 | ||
command: npx nx affected --targets=test:eslint,test:types,test:build,test:lib --base=${{ github.event.pull_request.base.sha }} | ||
- name: Stop Agents | ||
run: npx nx-cloud stop-all-agents | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
format: | ||
name: 'Format' | ||
runs-on: ubuntu-latest | ||
|
@@ -83,25 +79,8 @@ jobs: | |
version: 7 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.14.2 | ||
node-version: 18.16.0 | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --filter "./packages/**" --filter query --prefer-offline install | ||
- run: pnpm run test:format --base=${{ github.event.pull_request.base.sha }} | ||
test-build: | ||
name: 'Test Build' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.14.2 | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm --filter "./packages/**" --filter query --prefer-offline install | ||
- run: pnpm run test:build | ||
env: | ||
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v16.19.0 | ||
v18.16.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.