Skip to content

Commit ddfb839

Browse files
authored
Merge pull request #203 from yandex-cloud/checkout-submodules
Checkout Submodules in CI
2 parents cbf2ee3 + 2810c2c commit ddfb839

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/actions/checkout-and-install-node/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ inputs:
55
description: 'Whether to configure the token or SSH key with the local git config'
66
required: false
77
default: 'true'
8+
submodules:
9+
description: 'Whether to checkout submodules along with specified repo'
10+
required: false
11+
default: 'false'
812
runs:
913
using: 'composite'
1014
steps:

.github/workflows/pr-checks.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,27 @@ jobs:
99
tests:
1010
runs-on: ubuntu-24.04
1111
steps:
12-
- uses: yandex-cloud/nodejs-sdk/.github/actions/checkout-and-install-node@d6b5322d8dbc130126ec1fa00bc0f2d6cc2f53db
12+
- uses: yandex-cloud/nodejs-sdk/.github/actions/checkout-and-install-node@7992e39cce119c931dab92f6879013efff123009
13+
with:
14+
submodules: recursive
1315
- run: npm run test
1416
check-endpoints:
1517
runs-on: ubuntu-24.04
1618
# Currently, the check-endpoints script fails on the master branch.
1719
# So we need to continue on error.
1820
continue-on-error: true
1921
steps:
20-
- uses: yandex-cloud/nodejs-sdk/.github/actions/checkout-and-install-node@d6b5322d8dbc130126ec1fa00bc0f2d6cc2f53db
22+
- uses: yandex-cloud/nodejs-sdk/.github/actions/checkout-and-install-node@7992e39cce119c931dab92f6879013efff123009
2123
with:
2224
submodules: recursive
2325
- run: npm run check-endpoints
2426
lint:
2527
runs-on: ubuntu-24.04
2628
steps:
27-
- uses: yandex-cloud/nodejs-sdk/.github/actions/checkout-and-install-node@d6b5322d8dbc130126ec1fa00bc0f2d6cc2f53db
29+
- uses: yandex-cloud/nodejs-sdk/.github/actions/checkout-and-install-node@7992e39cce119c931dab92f6879013efff123009
2830
- run: npm run lint
2931
build:
3032
runs-on: ubuntu-24.04
3133
steps:
32-
- uses: yandex-cloud/nodejs-sdk/.github/actions/checkout-and-install-node@d6b5322d8dbc130126ec1fa00bc0f2d6cc2f53db
34+
- uses: yandex-cloud/nodejs-sdk/.github/actions/checkout-and-install-node@7992e39cce119c931dab92f6879013efff123009
3335
- run: npm run build

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Release
1212
runs-on: ubuntu-24.04
1313
steps:
14-
- uses: yandex-cloud/nodejs-sdk/.github/actions/checkout-and-install-node@d6b5322d8dbc130126ec1fa00bc0f2d6cc2f53db
14+
- uses: yandex-cloud/nodejs-sdk/.github/actions/checkout-and-install-node@7992e39cce119c931dab92f6879013efff123009
1515
with:
1616
persist-credentials: false
1717
- env:

0 commit comments

Comments
 (0)