-
Notifications
You must be signed in to change notification settings - Fork 13
114 lines (96 loc) · 3.85 KB
/
tdnf.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: tdnf CI
on: [pull_request, push, workflow_dispatch]
jobs:
photon-rpms:
name: build tdnf RPMs
env:
DIST: photon
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: 'vmware/tdnf'
- name: build container
working-directory: ${{ github.workspace }}
run: |
docker build -t ${DIST}/tdnf-build -f ci/Dockerfile.${DIST} .
- name: build rpms in container
working-directory: ${{ github.workspace }}
run: |
docker run --rm -e DIST -v$(pwd):/build -w/build ${DIST}/tdnf-build ./ci/build-rpms.sh
- name: upload RPMs
uses: actions/upload-artifact@v3
with:
name: tdnf-rpms
path: rpms
pmctl-tdnf:
name: build and test
needs: photon-rpms
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download RPMs
uses: actions/download-artifact@v3
with:
name: tdnf-rpms
path: rpms
- name: create container
working-directory: ${{ github.workspace }}
run: |
docker build -t pmd-nextgen -f ./ci/Dockerfile .
- name: run container in bg
working-directory: ${{ github.workspace }}
run: |
docker run -d -ti --rm --name pmd-nextgen pmd-nextgen
- name: run tdnf go tests
working-directory: ${{ github.workspace }}
run: |
docker exec -w /build pmd-nextgen go test -v ./cmd/pmctl/ -run Tdnf
- name: test tdnf repolist
working-directory: ${{ github.workspace }}
run: |
docker exec pmd-nextgen pmctl pkg repolist
- name: test tdnf makecache
working-directory: ${{ github.workspace }}
run: |
docker exec pmd-nextgen pmctl pkg makecache
- name: test tdnf list
working-directory: ${{ github.workspace }}
run: |
docker exec pmd-nextgen pmctl pkg list tdnf
- name: test tdnf list tdnf,lsof
working-directory: ${{ github.workspace }}
run: |
docker exec pmd-nextgen pmctl pkg list tdnf,lsof
- name: test tdnf list t*
working-directory: ${{ github.workspace }}
run: |
docker exec pmd-nextgen pmctl pkg list t*
- name: test tdnf info
working-directory: ${{ github.workspace }}
run: |
docker exec pmd-nextgen pmctl pkg info tdnf
- name: test tdnf repoquery tdnf
working-directory: ${{ github.workspace }}
run: |
docker exec pmd-nextgen pmctl pkg repoquery tdnf
- name: test tdnf search
working-directory: ${{ github.workspace }}
run: |
docker exec pmd-nextgen pmctl pkg search tdnf
- name: test tdnf check-update
working-directory: ${{ github.workspace }}
run: |
docker exec pmd-nextgen pmctl pkg check-update
- name: test tdnf updateinfo
working-directory: ${{ github.workspace }}
run: |
docker exec pmd-nextgen pmctl pkg updateinfo
- name: test tdnf updateinfo info
working-directory: ${{ github.workspace }}
run: |
docker exec pmd-nextgen pmctl pkg updateinfo --info
- name: test tdnf clean
working-directory: ${{ github.workspace }}
run: |
docker exec pmd-nextgen pmctl pkg clean