-
Notifications
You must be signed in to change notification settings - Fork 13
52 lines (47 loc) · 1.69 KB
/
main.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
50
51
52
name: kdump-utils tests
on: pull_request
jobs:
format-check:
runs-on: ubuntu-latest
container: docker.io/fedora:latest
steps:
- uses: actions/checkout@v4
- run: dnf install shfmt -y
- run: shfmt -d *.sh kdumpctl mk*dumprd
static-analysis:
runs-on: ubuntu-latest
container: docker.io/fedora:latest
steps:
- uses: actions/checkout@v4
- run: dnf install shellcheck -y
# Currently, for kdump-utils, there is need for shellcheck to require
# the sourced file to give correct warnings about the checked file
- run: shellcheck --exclude=1090,1091 *.sh spec/*.sh kdumpctl mk*dumprd
unit-tests:
runs-on: ubuntu-latest
container: docker.io/fedora:latest
steps:
- uses: actions/checkout@v4
- run: sudo dnf install -y make dracut grubby hostname
- run: curl -L -O https://github.com/shellspec/shellspec/archive/latest.tar.gz && tar -xzf latest.tar.gz
- run: cd shellspec-latest && sudo make install
- run: shellspec
integration-tests:
runs-on: self-hosted
timeout-minutes: 45
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.fedora_version }}-${{ matrix.test }}
cancel-in-progress: true
strategy:
matrix:
fedora_version: [
"40",
]
fail-fast: false
steps:
- name: "Checkout Repository"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "${{ matrix.fedora_version }} kdump tests"
run: tools/run-integration-tests.sh ${{ matrix.fedora_version }}