Skip to content

Commit

Permalink
github-actions - introduce make-test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SiskaPavel committed Apr 29, 2024
1 parent a5b4420 commit 2f039d7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build-os-matrix:
needs: check
runs-on: ubuntu-latest
outputs:
outputs:
os: ${{ steps.os.outputs.os }}
steps:
- name: Build OS Array
Expand Down Expand Up @@ -38,3 +38,11 @@ jobs:
uses: ./.github/workflows/rpm-test.yml
with:
os: ${{ matrix.os }}
make-test:
needs: [build-os-matrix, build]
strategy:
matrix:
os: ${{ fromJSON(needs.build-os-matrix.outputs.os) }}
uses: ./.github/workflows/make-test.yml
with:
os: ${{ matrix.os }}
23 changes: 23 additions & 0 deletions .github/workflows/make-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: make-test

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

jobs:
make-test:
runs-on: ubuntu-latest
container: ${{ inputs.os }}
steps:
- name: Install dependencies
run: |
dnf install -y make gcc-c++ cmake3 git rpm-build fuse3-devel
- name: Check out repository code
uses: actions/checkout@v4
- name: Mark github workspace as safe
run: git config --system --add safe.directory $PWD
- name: make test
run: make test

0 comments on commit 2f039d7

Please sign in to comment.