Merge pull request #1303 from vojtechtrefny/main_tests-logging-fix #905
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Static Analysis | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: 0 0 * * 0 | |
jobs: | |
build: | |
name: static-analysis | |
runs-on: ubuntu-24.04 | |
env: | |
CI_IMAGE: fedora:latest | |
CI_CONTAINER: blivet-tests | |
steps: | |
- name: Checkout blivet repository | |
uses: actions/checkout@v4 | |
- name: Install podman | |
run: | | |
sudo apt -qq update | |
sudo apt -y -qq install podman | |
- name: Start the container | |
run: | | |
podman run -d -t --name ${{ env.CI_CONTAINER }} --privileged --volume "$(pwd):/app" --workdir "/app" ${{ env.CI_IMAGE }} | |
- name: Install ansible in the container | |
run: | | |
podman exec -it ${{ env.CI_CONTAINER }} bash -c "dnf -y install ansible make which" | |
- name: Enable our daily builds Copr in the container | |
run: | | |
podman exec -it ${{ env.CI_CONTAINER }} bash -c "dnf -y install dnf-plugins-core && dnf -y copr enable @storage/udisks-daily" | |
- name: Install test dependencies in the container | |
run: | | |
podman exec -it ${{ env.CI_CONTAINER }} bash -c "ansible-playbook -i 'localhost,' -c local misc/install-test-dependencies.yml" | |
- name: Run static analysis tests in the container | |
run: | | |
podman exec -it ${{ env.CI_CONTAINER }} bash -c "make check" |