-
Notifications
You must be signed in to change notification settings - Fork 86
49 lines (41 loc) · 1.39 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Static Analysis
on:
pull_request:
branches:
- 3.*-devel
- master
push:
branches:
- 3.*-devel
- master
schedule:
- cron: 0 0 * * 0
jobs:
build:
name: static-analysis
runs-on: ubuntu-22.04
env:
CI_IMAGE: fedora:latest
CI_CONTAINER: blivet-tests
steps:
- name: Checkout libblockdev 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"