Merge pull request #233 from FunkinCrew/rewrite/ci-verify-submodule-commits

fix(ci): submodules shallow cloning might run into issues when updating them
This commit is contained in:
Cameron Taylor 2023-11-27 15:22:48 -05:00 committed by GitHub
commit 1054662faa

View file

@ -16,6 +16,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
submodules: 'recursive' submodules: 'recursive'
fetch-depth: 0
token: ${{ secrets.GH_RO_PAT }} token: ${{ secrets.GH_RO_PAT }}
- name: check whether submodules exist - name: check whether submodules exist
run: | run: |
@ -50,6 +51,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
submodules: 'recursive' submodules: 'recursive'
fetch-depth: 0
token: ${{ secrets.GH_RO_PAT }} token: ${{ secrets.GH_RO_PAT }}
- uses: ./.github/actions/setup-haxeshit - uses: ./.github/actions/setup-haxeshit
- name: Build game - name: Build game
@ -73,6 +75,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
submodules: 'recursive' submodules: 'recursive'
fetch-depth: 0
token: ${{ secrets.GH_RO_PAT }} token: ${{ secrets.GH_RO_PAT }}
- uses: ./.github/actions/setup-haxeshit - uses: ./.github/actions/setup-haxeshit
- name: Make HXCPP cache dir - name: Make HXCPP cache dir
@ -108,6 +111,7 @@ jobs:
# - uses: actions/checkout@v4 # - uses: actions/checkout@v4
# with: # with:
# submodules: 'recursive' # submodules: 'recursive'
# fetch-depth: 0
# token: ${{ secrets.GH_RO_PAT }} # token: ${{ secrets.GH_RO_PAT }}
# - uses: ./.github/actions/setup-haxeshit # - uses: ./.github/actions/setup-haxeshit
# - name: Run unit tests # - name: Run unit tests