ci(main): upgrade actions/checkout to v3
To be up to date with actions/checkout opens the door to use the latest features if necessary and get the latest security patches. This also avoids a couple of deprecation warnings in the CI runs. Note: The `actions/checkout` Action has been known to be broken in i686 containers as of v2, therefore we keep forcing it to v1 there. See actions/runner#2115 for more details. Signed-off-by: Oscar Dominguez <dominguez.celada@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
3dcec76d9d
commit
6cf4d908a9
|
@ -83,7 +83,7 @@ jobs:
|
||||||
if: needs.ci-config.outputs.enabled == 'yes'
|
if: needs.ci-config.outputs.enabled == 'yes'
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: git-for-windows/setup-git-for-windows-sdk@v1
|
- uses: git-for-windows/setup-git-for-windows-sdk@v1
|
||||||
- name: build
|
- name: build
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -138,10 +138,10 @@ jobs:
|
||||||
GIT_CONFIG_PARAMETERS: "'user.name=CI' 'user.email=ci@git'"
|
GIT_CONFIG_PARAMETERS: "'user.name=CI' 'user.email=ci@git'"
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: git-for-windows/setup-git-for-windows-sdk@v1
|
- uses: git-for-windows/setup-git-for-windows-sdk@v1
|
||||||
- name: initialize vcpkg
|
- name: initialize vcpkg
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: 'microsoft/vcpkg'
|
repository: 'microsoft/vcpkg'
|
||||||
path: 'compat/vcbuild/vcpkg'
|
path: 'compat/vcbuild/vcpkg'
|
||||||
|
@ -258,7 +258,7 @@ jobs:
|
||||||
runs_on_pool: ${{matrix.vector.pool}}
|
runs_on_pool: ${{matrix.vector.pool}}
|
||||||
runs-on: ${{matrix.vector.pool}}
|
runs-on: ${{matrix.vector.pool}}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: ci/install-dependencies.sh
|
- run: ci/install-dependencies.sh
|
||||||
- run: ci/run-build-and-tests.sh
|
- run: ci/run-build-and-tests.sh
|
||||||
- name: print test failures
|
- name: print test failures
|
||||||
|
@ -291,7 +291,10 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ${{matrix.vector.image}}
|
container: ${{matrix.vector.image}}
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
if: matrix.vector.jobname != 'linux32'
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
if: matrix.vector.jobname == 'linux32'
|
||||||
- run: ci/install-docker-dependencies.sh
|
- run: ci/install-docker-dependencies.sh
|
||||||
- run: ci/run-build-and-tests.sh
|
- run: ci/run-build-and-tests.sh
|
||||||
- name: print test failures
|
- name: print test failures
|
||||||
|
@ -311,7 +314,7 @@ jobs:
|
||||||
jobname: StaticAnalysis
|
jobname: StaticAnalysis
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: ci/install-dependencies.sh
|
- run: ci/install-dependencies.sh
|
||||||
- run: ci/run-static-analysis.sh
|
- run: ci/run-static-analysis.sh
|
||||||
- run: ci/check-directional-formatting.bash
|
- run: ci/check-directional-formatting.bash
|
||||||
|
@ -331,7 +334,7 @@ jobs:
|
||||||
artifact: sparse-20.04
|
artifact: sparse-20.04
|
||||||
- name: Install the current `sparse` package
|
- name: Install the current `sparse` package
|
||||||
run: sudo dpkg -i sparse-20.04/sparse_*.deb
|
run: sudo dpkg -i sparse-20.04/sparse_*.deb
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Install other dependencies
|
- name: Install other dependencies
|
||||||
run: ci/install-dependencies.sh
|
run: ci/install-dependencies.sh
|
||||||
- run: make sparse
|
- run: make sparse
|
||||||
|
@ -343,6 +346,6 @@ jobs:
|
||||||
jobname: Documentation
|
jobname: Documentation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: ci/install-dependencies.sh
|
- run: ci/install-dependencies.sh
|
||||||
- run: ci/test-documentation.sh
|
- run: ci/test-documentation.sh
|
||||||
|
|
Loading…
Reference in New Issue