forked from microsoft/rushstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'microsoft:main' into main
- Loading branch information
Showing
1,485 changed files
with
180,367 additions
and
26,493 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,6 @@ jobs: | |
strategy: | ||
matrix: | ||
include: | ||
- NodeVersion: 16.20.x | ||
NodeVersionDisplayName: 16 | ||
OS: ubuntu-latest | ||
- NodeVersion: 18.18.x | ||
NodeVersionDisplayName: 18 | ||
OS: ubuntu-latest | ||
|
@@ -26,42 +23,71 @@ jobs: | |
name: Node.js v${{ matrix.NodeVersionDisplayName }} (${{ matrix.OS }}) | ||
runs-on: ${{ matrix.OS }} | ||
steps: | ||
- name: Create ~/.rush-user/settings.json | ||
shell: pwsh | ||
# Create a .rush-user/settings.json file that looks like this: | ||
# | ||
# { "buildCacheFolder": "/<runner working directory>/rush-cache" } | ||
# | ||
# This configures the local cache to be shared between all Rush repos. This allows us to run a build in | ||
# one clone of the repo (repo-a), and restore from the cache in another clone of the repo (repo-b) to test | ||
# the build cache. | ||
run: | | ||
mkdir -p $HOME/.rush-user | ||
@{ buildCacheFolder = Join-Path ${{ github.workspace }} rush-cache } | ConvertTo-Json > $HOME/.rush-user/settings.json | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
path: repo-a | ||
|
||
- name: Git config user | ||
run: | | ||
git config --local user.name "Rushbot" | ||
git config --local user.email "[email protected]" | ||
working-directory: repo-a | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.NodeVersion }} | ||
|
||
- name: Verify Change Logs | ||
run: node common/scripts/install-run-rush.js change --verify | ||
working-directory: repo-a | ||
|
||
- name: Rush Install | ||
run: node common/scripts/install-run-rush.js install | ||
working-directory: repo-a | ||
|
||
# - if: runner.os == 'Linux' | ||
# name: Start xvfb | ||
# run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | ||
# working-directory: repo-a | ||
|
||
- name: Rush retest (install-run-rush) | ||
run: node common/scripts/install-run-rush.js retest --verbose --production | ||
env: | ||
# Prevent time-based browserslist update warning | ||
# See https://github.com/microsoft/rushstack/issues/2981 | ||
BROWSERSLIST_IGNORE_OLD_DATA: 1 | ||
working-directory: repo-a | ||
|
||
- name: Ensure repo README is up-to-date | ||
run: node repo-scripts/repo-toolbox/lib/start.js readme --verify | ||
working-directory: repo-a | ||
|
||
- name: Clone another copy of the repo to test the build cache | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
path: repo-b | ||
|
||
- name: Git config user | ||
run: | | ||
git config --local user.name "Rushbot" | ||
git config --local user.email "[email protected]" | ||
working-directory: repo-b | ||
|
||
- name: Rush update (rush-lib) | ||
run: node ${{ github.workspace }}/repo-a/apps/rush/lib/start-dev.js update | ||
working-directory: repo-b | ||
|
||
- name: Rush test (rush-lib) | ||
run: node apps/rush/lib/start-dev.js test --verbose --production --timeline | ||
env: | ||
# Prevent time-based browserslist update warning | ||
# See https://github.com/microsoft/rushstack/issues/2981 | ||
BROWSERSLIST_IGNORE_OLD_DATA: 1 | ||
run: node ${{ github.workspace }}/repo-a/apps/rush/lib/start-dev.js test --verbose --production --timeline | ||
working-directory: repo-b |
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.