forked from nrwl/nx
-
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.
chore(dep-graph): re-enable project graph e2e (nrwl#10799)
- Loading branch information
1 parent
08899b1
commit 0ae2154
Showing
19 changed files
with
2,880 additions
and
281 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 |
---|---|---|
|
@@ -45,6 +45,7 @@ jobs: | |
- e2e-react-native | ||
# - e2e-detox | ||
- e2e-add-nx-to-monorepo | ||
- e2e-dep-graph-client | ||
exclude: | ||
# exclude react-native and detox from ubuntu | ||
- os: ubuntu-latest | ||
|
@@ -77,95 +78,97 @@ jobs: | |
packages: e2e-workspace-create | ||
- os: macos-latest | ||
packages: e2e-add-nx-to-monorepo | ||
- os: macos-latest | ||
packages: e2e-dep-graph-client | ||
fail-fast: false | ||
|
||
name: ${{ matrix.os-name }}/${{ matrix.package_manager }} - ${{ matrix.packages }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install PNPM | ||
if: ${{ matrix.package_manager == 'pnpm' }} | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7.1.0 | ||
|
||
- name: Use Node.js ${{ matrix.node_version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
registry-url: http://localhost:4872 | ||
|
||
- name: Yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache yarn | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ matrix.os }}-node-${{ matrix.node_version }}-yarn-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ matrix.os }}-node-${{ matrix.node_version }}-yarn- | ||
- name: Install packages | ||
run: yarn install --prefer-offline --frozen-lockfile --non-interactive | ||
|
||
- name: Cleanup | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: | | ||
# Workaround to provide additional free space for testing. | ||
# https://github.com/actions/virtual-environments/issues/2840 | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
sudo apt-get install lsof | ||
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
- name: Homebrew cache directory path | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
id: homebrew-cache-dir-path | ||
run: echo "::set-output name=dir::$(brew --cache)" | ||
|
||
- name: Cache Homebrew | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.homebrew-cache-dir-path.outputs.dir }} | ||
key: brew-${{ matrix.node_version }} | ||
restore-keys: | | ||
brew- | ||
- name: Install applesimutils, reset ios simulators | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
run: | | ||
HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null | ||
HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils >/dev/null | ||
xcrun simctl shutdown all && xcrun simctl erase all | ||
- name: Run e2e tests | ||
run: yarn nx run-many --target=e2e --projects="${{ join(matrix.packages) }}" --parallel=1 | ||
env: | ||
GIT_AUTHOR_EMAIL: [email protected] | ||
GIT_AUTHOR_NAME: Test | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
GIT_COMMITTER_NAME: Test | ||
NX_E2E_CI_CACHE_KEY: e2e-gha-${{ matrix.os }}-${{ matrix.node_version }}-${{ matrix.package_manager }} | ||
NX_E2E_RUN_CYPRESS: ${{ 'true' }} | ||
NODE_OPTIONS: --max_old_space_size=8192 | ||
SELECTED_PM: ${{ matrix.package_manager }} | ||
npm_config_registry: http://localhost:4872 | ||
YARN_REGISTRY: http://localhost:4872 | ||
NX_VERBOSE_LOGGING: ${{ 'true' }} | ||
NX_E2E_SKIP_BUILD_CLEANUP: ${{ 'true' }} | ||
NX_CACHE_DIRECTORY: ${{ matrix.os-cache-dir }} | ||
|
||
- name: Setup tmate session | ||
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled && failure() }} | ||
uses: mxschmitt/[email protected] | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install PNPM | ||
if: ${{ matrix.package_manager == 'pnpm' }} | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7.1.0 | ||
|
||
- name: Use Node.js ${{ matrix.node_version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
registry-url: http://localhost:4872 | ||
|
||
- name: Yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache yarn | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ matrix.os }}-node-${{ matrix.node_version }}-yarn-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
${{ matrix.os }}-node-${{ matrix.node_version }}-yarn- | ||
- name: Install packages | ||
run: yarn install --prefer-offline --frozen-lockfile --non-interactive | ||
|
||
- name: Cleanup | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: | | ||
# Workaround to provide additional free space for testing. | ||
# https://github.com/actions/virtual-environments/issues/2840 | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
sudo apt-get install lsof | ||
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
- name: Homebrew cache directory path | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
id: homebrew-cache-dir-path | ||
run: echo "::set-output name=dir::$(brew --cache)" | ||
|
||
- name: Cache Homebrew | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.homebrew-cache-dir-path.outputs.dir }} | ||
key: brew-${{ matrix.node_version }} | ||
restore-keys: | | ||
brew- | ||
- name: Install applesimutils, reset ios simulators | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
run: | | ||
HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null | ||
HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils >/dev/null | ||
xcrun simctl shutdown all && xcrun simctl erase all | ||
- name: Run e2e tests | ||
run: yarn nx run-many --target=e2e --projects="${{ join(matrix.packages) }}" --parallel=1 | ||
env: | ||
GIT_AUTHOR_EMAIL: [email protected] | ||
GIT_AUTHOR_NAME: Test | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
GIT_COMMITTER_NAME: Test | ||
NX_E2E_CI_CACHE_KEY: e2e-gha-${{ matrix.os }}-${{ matrix.node_version }}-${{ matrix.package_manager }} | ||
NX_E2E_RUN_CYPRESS: ${{ 'true' }} | ||
NODE_OPTIONS: --max_old_space_size=8192 | ||
SELECTED_PM: ${{ matrix.package_manager }} | ||
npm_config_registry: http://localhost:4872 | ||
YARN_REGISTRY: http://localhost:4872 | ||
NX_VERBOSE_LOGGING: ${{ 'true' }} | ||
NX_E2E_SKIP_BUILD_CLEANUP: ${{ 'true' }} | ||
NX_CACHE_DIRECTORY: ${{ matrix.os-cache-dir }} | ||
|
||
- name: Setup tmate session | ||
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled && failure() }} | ||
uses: mxschmitt/[email protected] | ||
|
||
report-success: | ||
if: ${{ github.repository_owner == 'nrwl' && github.event_name == 'workflow_dispatch' }} # only once it's fixed on manual dispatch | ||
|
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.