Skip to content

Commit

Permalink
build: update yarn to v4.3.0
Browse files Browse the repository at this point in the history
Update yarn to the latest version should provide faster installs and improved
resilience as package versions change over time.
  • Loading branch information
clydin committed Jun 15, 2024
1 parent ee8ecfa commit 6ce5d82
Show file tree
Hide file tree
Showing 33 changed files with 28,415 additions and 167,399 deletions.
4 changes: 2 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ build --enable_runfiles
# Releases should always be stamped with version control info
# This command assumes node on the path and is a workaround for
# https://github.com/bazelbuild/bazel/issues/4802
build:release --workspace_status_command="yarn -s ng-dev release build-env-stamp --mode=release"
build:release --workspace_status_command="yarn ng-dev release build-env-stamp --mode=release"
build:release --stamp

# Snapshots should also be stamped with version control information.
build:snapshot-build --workspace_status_command="yarn -s ng-dev release build-env-stamp --mode=snapshot"
build:snapshot-build --workspace_status_command="yarn ng-dev release build-env-stamp --mode=snapshot"
build:snapshot-build --stamp

# Angular DevTools for Firefox releases *cannot* be stamped and `--config snapshot-build-firefox` is a no-op.
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/yarn-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ runs:
key: v1-angular-main-deps-${{hashFiles('WORKSPACE')}}-${{hashFiles('yarn.lock')}}
restore-keys: v1-angular-main-deps-

- run: yarn install --frozen-lockfile --non-interactive
- run: yarn install --immutable
shell: bash
2 changes: 1 addition & 1 deletion .github/workflows/adev-preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@03b8a7dffd1205e061f0bee949024ebefc2a6592
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Build adev to ensure it continues to work
run: yarn bazel build //adev:build --config=release
- uses: angular/dev-infra/github-actions/previews/pack-and-upload-artifact@03b8a7dffd1205e061f0bee949024ebefc2a6592
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ jobs:
with:
cache-node-modules: true
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Install node modules in aio
run: yarn install --frozen-lockfile --cwd aio
run: yarn install --immutable --cwd aio
- name: Check code lint
run: yarn -s tslint
run: yarn tslint
- name: Check for circular dependencies
run: yarn -s ts-circular-deps:check
run: yarn ts-circular-deps:check
- name: Validate pull approve configuration
run: yarn -s ng-dev pullapprove verify
run: yarn ng-dev pullapprove verify
- name: Validate angular robot configuration
run: yarn -s ng-dev ngbot verify
run: yarn ng-dev ngbot verify
- name: Confirm code builds with typescript as expected
run: yarn -s check-tooling-setup
run: yarn check-tooling-setup

devtools:
runs-on: ubuntu-latest
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@03b8a7dffd1205e061f0bee949024ebefc2a6592
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Run unit tests
run: yarn devtools:test
- name: Test build
Expand All @@ -69,7 +69,7 @@ jobs:
- name: Setup Bazel Remote Caching
uses: angular/dev-infra/github-actions/bazel/configure-remote@03b8a7dffd1205e061f0bee949024ebefc2a6592
- name: Install node modules
run: yarn install --frozen-lockfile --network-timeout 100000
run: yarn install --immutable --network-timeout 100000
- name: Run CI tests for framework
run: yarn test:ci

Expand All @@ -84,7 +84,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@03b8a7dffd1205e061f0bee949024ebefc2a6592
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Build adev in fast mode to ensure it continues to work
run: yarn bazel build //adev:build --fast_adev --config=release
- name: Run tests
Expand All @@ -103,7 +103,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@03b8a7dffd1205e061f0bee949024ebefc2a6592
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- run: echo "https://${{secrets.SNAPSHOT_BUILDS_GITHUB_TOKEN}}:@github.com" > ${HOME}/.git_credentials
- run: yarn build
- run: ./scripts/ci/publish-build-artifacts.sh
Expand All @@ -125,7 +125,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@03b8a7dffd1205e061f0bee949024ebefc2a6592
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- run: |
yarn bazel build \
//packages/zone.js/bundles:zone.umd.js \
Expand All @@ -145,13 +145,13 @@ jobs:
cp dist/bin/packages/zone.js/test/closure/zone.closure.mjs ./packages/zone.js/build/test/zone.closure.mjs
# Install
- run: yarn --cwd packages/zone.js install --frozen-lockfile --non-interactive
- run: yarn --cwd packages/zone.js install --immutable
# Run zone.js tools tests
- run: yarn --cwd packages/zone.js promisefinallytest
- run: yarn --cwd packages/zone.js jest:test
- run: yarn --cwd packages/zone.js jest:nodetest
- run: yarn --cwd packages/zone.js electrontest
- run: yarn --cwd packages/zone.js/test/typings install --frozen-lockfile --non-interactive
- run: yarn --cwd packages/zone.js/test/typings install --immutable
- run: yarn --cwd packages/zone.js/test/typings test

bazel-saucelabs:
Expand All @@ -164,7 +164,7 @@ jobs:
with:
cache-node-modules: true
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Setup Bazel
uses: angular/dev-infra/github-actions/bazel/setup@03b8a7dffd1205e061f0bee949024ebefc2a6592
- name: Setup Bazel Remote Caching
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@03b8a7dffd1205e061f0bee949024ebefc2a6592
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Build adev to ensure it continues to work
run: yarn bazel build //adev:build --config=release
- name: Deploy to firebase
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@03b8a7dffd1205e061f0bee949024ebefc2a6592
- name: Install node modules in aio
run: yarn install --frozen-lockfile --cwd aio
run: yarn install --immutable --cwd aio
- name: Run basic e2e and deployment config tests.
run: yarn --cwd aio test-production-url --test_env=TARGET_URL="${{ matrix.version }}"
- name: Run PWA-score tests.
Expand All @@ -50,6 +50,6 @@ jobs:
node-module-directories: |
./aio/node_modules
- name: Install node modules in aio
run: yarn install --frozen-lockfile --cwd aio
run: yarn install --immutable --cwd aio
- name: Check website provided in contributors.json file
run: node aio/scripts/test-external-urls.js
26 changes: 13 additions & 13 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ jobs:
with:
cache-node-modules: true
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Check code lint
run: yarn -s tslint
run: yarn tslint
- name: Check for circular dependencies
run: yarn -s ts-circular-deps:check
run: yarn ts-circular-deps:check
- name: Validate pull approve configuration
run: yarn -s ng-dev pullapprove verify
run: yarn ng-dev pullapprove verify
- name: Validate angular robot configuration
run: yarn -s ng-dev ngbot verify
run: yarn ng-dev ngbot verify
- name: Confirm code builds with typescript as expected
run: yarn -s check-tooling-setup
run: yarn check-tooling-setup
- name: Check commit message
run: yarn ng-dev commit-message validate-range ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
- name: Check code format
Expand All @@ -53,7 +53,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@03b8a7dffd1205e061f0bee949024ebefc2a6592
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Run unit tests
run: yarn devtools:test
- name: Test build
Expand All @@ -71,7 +71,7 @@ jobs:
- name: Setup Bazel Remote Caching
uses: angular/dev-infra/github-actions/bazel/configure-remote@03b8a7dffd1205e061f0bee949024ebefc2a6592
- name: Install node modules
run: yarn install --frozen-lockfile --network-timeout 100000
run: yarn install --immutable --network-timeout 100000
- name: Run CI tests for framework
run: yarn test:ci

Expand All @@ -86,7 +86,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@03b8a7dffd1205e061f0bee949024ebefc2a6592
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Build adev in fast mode to ensure it continues to work
run: yarn bazel build //adev:build --fast_adev --config=release
- name: Run tests
Expand All @@ -109,7 +109,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@03b8a7dffd1205e061f0bee949024ebefc2a6592
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- run: |
yarn bazel build \
//packages/zone.js/bundles:zone.umd.js \
Expand All @@ -129,13 +129,13 @@ jobs:
cp dist/bin/packages/zone.js/test/closure/zone.closure.mjs ./packages/zone.js/build/test/zone.closure.mjs
# Install
- run: yarn --cwd packages/zone.js install --frozen-lockfile --non-interactive
- run: yarn --cwd packages/zone.js install --immutable
# Run zone.js tools tests
- run: yarn --cwd packages/zone.js promisefinallytest
- run: yarn --cwd packages/zone.js jest:test
- run: yarn --cwd packages/zone.js jest:nodetest
- run: yarn --cwd packages/zone.js electrontest
- run: yarn --cwd packages/zone.js/test/typings install --frozen-lockfile --non-interactive
- run: yarn --cwd packages/zone.js/test/typings install --immutable
- run: yarn --cwd packages/zone.js/test/typings test

saucelabs:
Expand All @@ -148,7 +148,7 @@ jobs:
with:
cache-node-modules: true
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Setup Bazel
uses: angular/dev-infra/github-actions/bazel/setup@03b8a7dffd1205e061f0bee949024ebefc2a6592
- name: Setup Saucelabs Variables
Expand Down
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,12 @@ aio/content/examples/.DS_Store


# Ignore cache created with the Angular CLI.
.angular/
.angular/

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set +e

yarn -s ng-dev commit-message pre-commit-validate --file $1 2>/dev/null
yarn ng-dev commit-message pre-commit-validate --file $1 2>/dev/null
if [ $? -ne 0 ]; then
echo "WARNING: failed to run commit message validation (ng-dev commit-mesage pre-commit-validate)"
fi
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set +e

yarn -s ng-dev format staged 2>/dev/null
yarn ng-dev format staged 2>/dev/null
if [ $? -ne 0 ]; then
echo "WARNING: failed to run file formatting (ng-dev format staged)"
fi
Expand Down
2 changes: 1 addition & 1 deletion .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set +e

yarn -s ng-dev commit-message restore-commit-message-draft $1 $2 2>/dev/null
yarn ng-dev commit-message restore-commit-message-draft $1 $2 2>/dev/null
if [ $? -ne 0 ]; then
echo "WARNING: failed to attempt to restore commit message draft (ng-dev commit-message restore-commit-message-draft)"
fi
Expand Down
Loading

0 comments on commit 6ce5d82

Please sign in to comment.