Skip to content

Commit 19b6eb5

Browse files
authored
Update build-and-test.yml
1 parent 952c89e commit 19b6eb5

1 file changed

Lines changed: 16 additions & 18 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,32 @@ jobs:
1212
build:
1313
name: 'Build (${{ matrix.os }}, Node ${{ matrix.node }})'
1414
runs-on: ${{ matrix.os }}
15+
if: "!contains(github.event.head_commit.message, '[skip ci]')" # شرط اختياري لتجاوز البناء
1516
strategy:
1617
fail-fast: false
1718
matrix:
18-
os:
19-
- 'ubuntu-latest'
20-
node:
21-
- '16'
19+
os: [ubuntu-latest]
20+
node: [16]
2221
steps:
2322
- uses: actions/checkout@v3
2423
- uses: actions/setup-node@v3
2524
with:
2625
node-version: ${{ matrix.node }}
2726
cache: 'npm'
2827
- name: Install dependencies
29-
run: npm ci --prefer-offline
28+
run: npm ci
3029
- name: Build
3130
run: npm run build
3231

3332
integration:
3433
name: 'Integration Tests (${{ matrix.os }}, Node ${{ matrix.node }})'
3534
runs-on: ${{ matrix.os }}
35+
if: "!contains(github.event.head_commit.message, '[skip ci]')" # نفس الشرط
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
os:
40-
- 'ubuntu-latest'
41-
- 'macos-latest'
42-
- 'windows-latest'
43-
node:
44-
- '16'
39+
os: [ubuntu-latest, macos-latest, windows-latest]
40+
node: [16]
4541
steps:
4642
- uses: actions/checkout@v3
4743
- name: Setup node
@@ -50,27 +46,29 @@ jobs:
5046
node-version: ${{ matrix.node }}
5147
cache: 'npm'
5248
- name: Install dependencies
53-
run: npm ci --prefer-offline
54-
# The integration tests are run with yarn, so we need to install it.
49+
run: npm ci
5550
- name: Install yarn
56-
run: npm i -g yarn
51+
run: npm install --global yarn
5752
- name: Run integration tests
5853
run: npm run test:integration
5954

6055
e2e-simple:
61-
name: E2E Simple
56+
name: 'E2E Simple'
57+
if: "!contains(github.event.head_commit.message, '[skip ci]')" # الشرط هنا أيضاً
6258
uses: ./.github/workflows/e2e-base.yml
6359
with:
6460
testScript: 'tasks/e2e-simple.sh'
6561

6662
e2e-installs:
67-
name: E2E Installs
63+
name: 'E2E Installs'
64+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
6865
uses: ./.github/workflows/e2e-base.yml
6966
with:
7067
testScript: 'tasks/e2e-installs.sh'
7168

7269
e2e-kitchensink:
73-
name: E2E Kitchensink
70+
name: 'E2E Kitchensink'
71+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
7472
uses: ./.github/workflows/e2e-base.yml
7573
with:
76-
testScript: 'tasks/e2e-kitchensink.sh'
74+
testScript: 'tasks/e2e-kitchensink.sh'

0 commit comments

Comments
 (0)