ci: checkout the code after installing git-core

This makes sure that the actions/checkout action uses git to fetch the
sources (and thus resulting in a git repository), rather than using the
REST API (and get a simple directory with sources).

This may be useful to certain services (e.g. newer version of
codecov-cli) as they need to have the sources as proper git repository.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
Pino Toscano 2024-03-20 10:18:55 +01:00 committed by Cole Robinson
parent 14c5684f25
commit 8f8a1b9b43

View File

@ -11,8 +11,6 @@ jobs:
image: fedora:latest
steps:
- uses: actions/checkout@v4
- name: Install base RPM packages
run: |
# glibc-langpacks-en needed to work around python locale issues
@ -24,6 +22,8 @@ jobs:
glibc-langpack-en \
python3-pytest python3-pytest-cov
- uses: actions/checkout@v4
- name: Install RPM build deps
run: |
dnf builddep -y ./virt-manager.spec