Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8262924

Browse files
committed
chore(repo): add parallel steps
1 parent b8a12cd commit 8262924

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

.nx/workflows/agents.yaml

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,26 @@ common-init-steps: &common-init-steps
99
- name: Checkout
1010
uses: 'nrwl/nx-cloud-workflows/v5/workflow-steps/checkout/main.yaml'
1111

12-
- group-name: Install Packages
13-
parallel: true
14-
steps:
15-
- name: Install zip and unzip
16-
script: sudo apt-get -yqq install zip unzip
17-
- name: Install e2e deps
18-
script: |
19-
sudo apt-get update
20-
sudo apt-get install -y ca-certificates lsof libvips-dev libglib2.0-dev libgirepository1.0-dev
21-
2212
- name: Cache restore
2313
uses: 'nrwl/nx-cloud-workflows/v5/workflow-steps/cache/main.yaml'
2414
inputs:
2515
key: 'pnpm-lock.yaml'
2616
paths: .pnpm-store
2717
base-branch: 'master'
2818

19+
- group-name: Install Packages
20+
parallel: false
21+
steps:
22+
- name: Apt Update
23+
script: |
24+
sudo apt-get update
25+
- name: Install zip and unzip for Bun
26+
script: |
27+
sudo apt-get -yqq install zip unzip
28+
- name: Install E2E deps
29+
script: |
30+
sudo apt-get install -y ca-certificates lsof libvips-dev libglib2.0-dev libgirepository1.0-dev
31+
2932
- group-name: Install Tooling
3033
parallel: true
3134
steps:
@@ -38,31 +41,29 @@ common-init-steps: &common-init-steps
3841
- name: Install Bun
3942
script: |
4043
curl -fsSL https://bun.sh/install | bash
41-
echo "BUN_INSTALL=$HOME/.bun" >> $NX_CLOUD_ENV
42-
echo "PATH=$HOME/.bun/bin:$PATH" >> $NX_CLOUD_ENV
4344
- name: Setup Java 21
4445
script: |
4546
sudo apt install -y openjdk-21-jdk
4647
sudo update-alternatives --set java /usr/lib/jvm/java-21-openjdk-amd64/bin/java
4748
java -version
48-
- name: Install Browsers
49+
- name: Pnpm Install from Lockfile
4950
script: |
50-
pnpm exec cypress install
51-
pnpm exec playwright install --with-deps
51+
pnpm install --frozen-lockfile
5252
5353
- group-name: Install Dependencies and E2E
5454
parallel: true
5555
steps:
56-
- name: Pnpm Install from Lockfile
57-
script: |
58-
pnpm install --frozen-lockfile
5956
- name: Install Rust Dependencies
6057
script: |
6158
cargo fetch
6259
- name: Setup Gradle
6360
script: |
6461
./gradlew wrapper
6562
./gradlew --version
63+
- name: Install Browsers
64+
script: |
65+
pnpm exec cypress install
66+
pnpm exec playwright install --with-deps
6667
6768
- group-name: Misc Steps
6869
parallel: true
@@ -74,7 +75,10 @@ common-init-steps: &common-init-steps
7475
git config --global user.email [email protected]
7576
git config --global user.name "Test Test"
7677
- name: Check bun
77-
script: bun --version
78+
script: |
79+
echo "BUN_INSTALL=$HOME/.bun" >> $NX_CLOUD_ENV
80+
echo "PATH=$HOME/.bun/bin:$PATH" >> $NX_CLOUD_ENV
81+
bun --version
7882
7983
launch-templates:
8084
linux-large:

0 commit comments

Comments
 (0)