Skip to content

Commit

Permalink
feat(repo): switch to yarn pnp
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Apr 5, 2024
1 parent 805d18c commit b1e3808
Show file tree
Hide file tree
Showing 7,532 changed files with 281,068 additions and 36,649 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Nx 18 enables using plugins to infer targets by default
# This is disabled for existing workspaces to maintain compatibility
# For more info, see: https://nx.dev/concepts/inferred-tasks
NX_ADD_PLUGINS=false
66 changes: 33 additions & 33 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,74 +15,74 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' && github.event_name != 'schedule' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout [main]
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
uses: nrwl/nx-set-shas@v4
- uses: denoland/setup-deno@v1
with:
deno-version: '^1.3'
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: '16'
- run: yarn
node-version: '18'
- run: yarn --immutable
- run: deno info && deno --version
- run: npx nx affected --target=lint --parallel --max-parallel=3
- run: npx nx affected --target=build --parallel --max-parallel=3
- run: npx nx affected --target=test --parallel --max-parallel=2
- run: npx nx affected --target=e2e --parallel --max-parallel=1 --exclude=nx-ignore-e2e,gatsby-e2e
- run: npx nx-cloud stop-all-agents
- run: yarn nx affected --target=lint --parallel --max-parallel=3
- run: yarn nx affected --target=build --parallel --max-parallel=3
- run: yarn nx affected --target=test --parallel --max-parallel=2
- run: yarn nx affected --target=e2e --parallel --max-parallel=1 --exclude=nx-ignore-e2e
- run: yarn nx-cloud stop-all-agents
nightly:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'schedule' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout [main]
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
uses: nrwl/nx-set-shas@v4
- uses: denoland/setup-deno@v1
with:
deno-version: '^1.3'
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: '16'
- run: yarn
node-version: '18'
- run: yarn --immutable
- run: deno info && deno --version
- run: npx nx run-many -t=build,test,lint --parallel --max-parallel=3
- run: npx nx affected -t=e2e --parallel --max-parallel=1 --exclude=nx-ignore-e2e,gatsby-e2e
- run: npx nx-cloud stop-all-agents
- run: yarn nx run-many -t=build,test,lint --parallel --max-parallel=3
- run: yarn nx affected -t=e2e --parallel --max-parallel=1 --exclude=nx-ignore-e2e
- run: yarn nx-cloud stop-all-agents
pr:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
uses: nrwl/nx-set-shas@v4
- uses: denoland/setup-deno@v1
with:
deno-version: '^1.3'
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: '16'
- run: yarn
node-version: '18'
- run: yarn --immutable
- run: deno info && deno --version
- run: npx nx affected --target=lint --parallel --max-parallel=3
- run: npx nx affected --target=build --parallel --max-parallel=3
- run: npx nx affected --target=test --parallel --max-parallel=2
- run: npx nx affected --target=e2e --parallel --max-parallel=1 --exclude=nx-ignore-e2e,gatsby-e2e
- run: npx nx-cloud stop-all-agents
- run: yarn nx affected --target=lint --parallel --max-parallel=3
- run: yarn nx affected --target=build --parallel --max-parallel=3
- run: yarn nx affected --target=test --parallel --max-parallel=2
- run: yarn nx affected --target=e2e --parallel --max-parallel=1 --exclude=nx-ignore-e2e
- run: yarn nx-cloud stop-all-agents
agents:
runs-on: ubuntu-latest
name: Agent 1
Expand All @@ -91,16 +91,16 @@ jobs:
matrix:
agent: [1, 2, 3]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: denoland/setup-deno@v1
with:
deno-version: '^1.3'
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: '16'
- run: yarn
node-version: '18'
- run: yarn --immutable
- name: Start Nx Agent ${{ matrix.agent }}
run: npx nx-cloud start-agent
run: yarn nx-cloud start-agent
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ testem.log
Thumbs.db

# migration file
./migrations.json
./migrations.json
.nx/cache
Loading

0 comments on commit b1e3808

Please sign in to comment.