Skip to content

Commit

Permalink
checkout with submodules recursive
Browse files Browse the repository at this point in the history
  • Loading branch information
bbyalcinkaya committed Aug 23, 2023
1 parent cf7afd6 commit 3f6cea2
Showing 1 changed file with 12 additions and 44 deletions.
56 changes: 12 additions & 44 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,10 @@ jobs:
name: 'Simple Tests'
timeout-minutes: 30
steps:
- name: Checkout
- name: 'Check out code'
uses: actions/checkout@v3
with:
token: ${{ secrets.JENKINS_GITHUB_PAT }}
- name: Checkout submodules
env:
GITHUB_TOKEN: ${{ secrets.JENKINS_GITHUB_PAT }}
run: |
# https://gist.github.com/taoyuan/bfa3ff87e4b5611b5cbe ; for a repository we don't control the submodules over.
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
git submodule update --init --recursive
with:
submodules: recursive
- name: 'Set up Docker'
uses: ./.github/actions/with-docker
with:
Expand All @@ -47,18 +39,10 @@ jobs:
needs: [simple-tests]
timeout-minutes: 120
steps:
- name: Checkout
- name: 'Check out code'
uses: actions/checkout@v3
with:
token: ${{ secrets.JENKINS_GITHUB_PAT }}
- name: Checkout submodules
env:
GITHUB_TOKEN: ${{ secrets.JENKINS_GITHUB_PAT }}
run: |
# https://gist.github.com/taoyuan/bfa3ff87e4b5611b5cbe ; for a repository we don't control the submodules over.
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
git submodule update --init --recursive
with:
submodules: recursive
- name: 'Set up Docker'
uses: ./.github/actions/with-docker
with:
Expand All @@ -80,18 +64,10 @@ jobs:
needs: [feature-tests]
timeout-minutes: 60
steps:
- name: Checkout
- name: 'Check out code'
uses: actions/checkout@v3
with:
token: ${{ secrets.JENKINS_GITHUB_PAT }}
- name: Checkout submodules
env:
GITHUB_TOKEN: ${{ secrets.JENKINS_GITHUB_PAT }}
run: |
# https://gist.github.com/taoyuan/bfa3ff87e4b5611b5cbe ; for a repository we don't control the submodules over.
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
git submodule update --init --recursive
with:
submodules: recursive
- name: 'Set up Docker'
uses: ./.github/actions/with-docker
with:
Expand All @@ -115,18 +91,10 @@ jobs:
needs: [feature-tests]
timeout-minutes: 30
steps:
- name: Checkout
- name: 'Check out code'
uses: actions/checkout@v3
with:
token: ${{ secrets.JENKINS_GITHUB_PAT }}
- name: Checkout submodules
env:
GITHUB_TOKEN: ${{ secrets.JENKINS_GITHUB_PAT }}
run: |
# https://gist.github.com/taoyuan/bfa3ff87e4b5611b5cbe ; for a repository we don't control the submodules over.
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
git submodule update --init --recursive
with:
submodules: recursive
- name: 'Set up Docker'
uses: ./.github/actions/with-docker
with:
Expand Down

0 comments on commit 3f6cea2

Please sign in to comment.