Skip to content

Commit

Permalink
github-actions - add rpm-test workflow
Browse files Browse the repository at this point in the history
This workflow try to install RPM packages
  • Loading branch information
SiskaPavel committed Apr 15, 2024
1 parent 85ea570 commit 45f3d12
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/rpm-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: test

on:
workflow_call:
inputs:
os:
required: true
type: string

jobs:
test:
runs-on: ubuntu-latest
container: ${{ inputs.os }}
steps:
- name: extract artifact name
run: |
OS=${{ inputs.os }}
echo "artifactName=$(echo ${OS/:/}-rpm)" >> $GITHUB_ENV
- name: download RPM artifact
uses: actions/download-artifact@v4
with:
name: ${{ env.artifactName }}
- name: install RPM artifact
run: |
dnf install -y *.rpm

0 comments on commit 45f3d12

Please sign in to comment.