Skip to content

Commit

Permalink
build: update yarn to v4.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin committed Aug 22, 2024
1 parent 0fbfc8a commit da49f65
Show file tree
Hide file tree
Showing 23 changed files with 45,793 additions and 39,080 deletions.
4 changes: 2 additions & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ test --test_output=errors

# Configures script to do version stamping.
# See https://docs.bazel.build/versions/master/user-manual.html#flag--workspace_status_command
build:release --workspace_status_command="yarn -s ng-dev:stamp --mode=release"
build:release --workspace_status_command="yarn ng-dev:stamp --mode=release"
build:release --stamp

build:snapshot-build --workspace_status_command="yarn -s ng-dev:stamp --mode=snapshot"
build:snapshot-build --workspace_status_command="yarn ng-dev:stamp --mode=snapshot"
build:snapshot-build --stamp

####################################
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
cache-node-modules: true
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Checking package externals
run: |
bazel build //:package_externals
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Check code lint
run: yarn tslint
- name: Check for circular dependencies
run: yarn -s ts-circular-deps:check
run: yarn ts-circular-deps:check
- uses: ./.github/actions/slack
if: failure()
with:
Expand All @@ -62,7 +62,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Check API Goldens
run: yarn bazel test tools/public_api_guard/...
- uses: ./.github/actions/slack
Expand All @@ -83,7 +83,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Run e2e tests
run: yarn e2e --flaky_test_attempts=2
- uses: ./.github/actions/slack
Expand All @@ -104,7 +104,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Run integration tests
run: yarn integration-tests
- name: Running size integration tests
Expand All @@ -128,7 +128,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Run linker AOT tests
run: yarn test-linker-aot
- uses: ./.github/actions/slack
Expand All @@ -149,7 +149,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Run linker JIT tests
run: yarn test-linker-jit
- uses: ./.github/actions/slack
Expand All @@ -170,7 +170,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Run tests
run: bazel test --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only -- src/...
- uses: ./.github/actions/slack
Expand All @@ -191,7 +191,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Run tests
run: bazel build --build_tag_filters=-docs-package,-release-package -- src/...
- uses: ./.github/actions/slack
Expand All @@ -212,7 +212,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Build and Verify Release Output
run: yarn build-and-check-release-output
- name: Verify tooling setup
Expand Down Expand Up @@ -243,7 +243,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Build and Verify Release Output
run: yarn build-and-check-release-output
- name: Verify tooling setup
Expand Down Expand Up @@ -274,7 +274,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@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Setup Saucelabs Variables
Expand All @@ -294,7 +294,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@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Setup Saucelabs Variables
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-dev-app-main-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable

- name: Building dev-app
run: |
yarn -s bazel build //src/dev-app:web_package --symlink_prefix=dist/
yarn bazel build //src/dev-app:web_package --symlink_prefix=dist/
cp -R dist/bin/src/dev-app/web_package dist/dev-app-web-pkg
- name: Configure Firebase deploy target
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
cache-node-modules: true
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Checking package externals
run: |
bazel build //:package_externals
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Check code lint
run: yarn tslint
- name: Check for circular dependencies
run: yarn -s ts-circular-deps:check
run: yarn ts-circular-deps:check
- name: Check code format
run: yarn ng-dev format changed --check ${{ github.event.pull_request.base.sha }}
# Commit message check is last intentionally, because the caretaker can fix it
Expand All @@ -61,7 +61,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Check API Goldens
run: yarn bazel test tools/public_api_guard/...

Expand All @@ -77,7 +77,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Run e2e tests
run: yarn e2e --flaky_test_attempts=2

Expand All @@ -93,7 +93,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Run integration tests
run: yarn integration-tests
- name: Running size integration tests
Expand All @@ -112,7 +112,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Run linker AOT tests
run: yarn test-linker-aot

Expand All @@ -128,7 +128,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Run linker JIT tests
run: yarn test-linker-jit

Expand All @@ -144,7 +144,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Run tests
run: bazel test --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only -- src/...

Expand All @@ -160,7 +160,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Run tests
run: bazel build --build_tag_filters=-docs-package,-release-package -- src/...

Expand All @@ -176,7 +176,7 @@ jobs:
- name: Setup Bazel RBE
uses: angular/dev-infra/github-actions/bazel/configure-remote@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Build and Verify Release Output
run: yarn build-and-check-release-output
- name: Verify tooling setup
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
# Checking out the pull request commit is intended here as we need to run the changed code tests.
ref: ${{ github.event.pull_request.head.sha }}
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Setup Bazel
uses: angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Setup Saucelabs Variables
Expand All @@ -226,7 +226,7 @@ jobs:
# Checking out the pull request commit is intended here as we need to run the changed code tests.
ref: ${{ github.event.pull_request.head.sha }}
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Setup Bazel
uses: angular/dev-infra/github-actions/bazel/setup@89624a6442b75b5cda33c5e9b5c8c4f87ca4f13d
- name: Setup Saucelabs Variables
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scheduled-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
with:
cache-node-modules: true
- name: Install node modules
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Check Docs Site
run: yarn ci-docs-monitor-test
- uses: ./.github/actions/slack
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ node_modules
/src/packages
/src/pubspec.lock

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# IDEs
/.idea
Expand Down
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
. "$(dirname $0)/_/husky.sh"

# Ahead of creating the commit, validate the commit message.
yarn -s ng-dev commit-message pre-commit-validate --file $1;
yarn ng-dev commit-message pre-commit-validate --file $1;
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# Allow for the formatting command to fail without exiting the script.
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
fi
2 changes: 1 addition & 1 deletion .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
. "$(dirname $0)/_/husky.sh"

# When a commit is started, restore the previous commit message draft if it exists.
yarn -s ng-dev commit-message restore-commit-message-draft $1 $2;
yarn ng-dev commit-message restore-commit-message-draft $1 $2;
Loading

0 comments on commit da49f65

Please sign in to comment.