mirror of https://github.com/vmware/tdnf.git
29 lines
1.0 KiB
YAML
29 lines
1.0 KiB
YAML
name: tdnf RPMs
|
|
|
|
on: [pull_request, push, workflow_dispatch]
|
|
|
|
jobs:
|
|
photon-rpms:
|
|
env:
|
|
DIST: photon
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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: run pytests package
|
|
working-directory: ${{ github.workspace }}
|
|
run: |
|
|
docker run --rm -v$(pwd)/rpms:/rpms ${DIST} /bin/sh -c 'tdnf -y --repofrompath=tdnf,/rpms install tdnf-pytests && pytest /usr/share/tdnf/pytests/'
|
|
- name: upload RPMs
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: tdnf-rpms
|
|
path: rpms
|