Skip to content

Commit a89fadb

Browse files
committed
ci: Do not checkout submodules in workflows
1 parent 33441cc commit a89fadb

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/docker-dev.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 1
14+
submodules: false
1215

1316
- name: Installing PHP
1417
uses: shivammathur/setup-php@master
@@ -45,8 +48,6 @@ jobs:
4548
DB_CONNECTION: 'sqlite'
4649
DB_DATABASE: 'db.sqlite'
4750
run: touch database/db.sqlite; php artisan migrate
48-
- name: Update submodules
49-
run: git submodule update --init
5051
- name: Execute tests (Unit and Feature tests) via PHPUnit
5152
env:
5253
DB_CONNECTION: 'sqlite'
@@ -71,6 +72,9 @@ jobs:
7172
--health-retries=3
7273
steps:
7374
- uses: actions/checkout@v4
75+
with:
76+
fetch-depth: 1
77+
submodules: false
7478

7579
- name: Installing PHP
7680
uses: shivammathur/setup-php@master
@@ -111,8 +115,6 @@ jobs:
111115
DB_USERNAME: 'scw__api'
112116
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
113117
run: touch database/db.sqlite; php artisan migrate
114-
- name: Update submodules
115-
run: git submodule update --init
116118
- name: Execute tests (Unit and Feature tests) via PHPUnit
117119
env:
118120
DB_CONNECTION: 'mysql'

.github/workflows/docker.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 1
14+
submodules: false
1215

1316
- name: Installing PHP
1417
uses: shivammathur/setup-php@master
@@ -69,6 +72,9 @@ jobs:
6972
--health-retries=3
7073
steps:
7174
- uses: actions/checkout@v4
75+
with:
76+
fetch-depth: 1
77+
submodules: false
7278

7379
- name: Installing PHP
7480
uses: shivammathur/setup-php@master

0 commit comments

Comments
 (0)