From 2f039d701e9efd58fb9351d22ad90454ed9c9555 Mon Sep 17 00:00:00 2001 From: Pavel Siska Date: Wed, 17 Apr 2024 13:43:25 +0200 Subject: [PATCH] github-actions - introduce make-test workflow --- .github/workflows/ci.yml | 10 +++++++++- .github/workflows/make-test.yml | 23 +++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/make-test.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d32079..1ec2604 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 }} diff --git a/.github/workflows/make-test.yml b/.github/workflows/make-test.yml new file mode 100644 index 0000000..549eac6 --- /dev/null +++ b/.github/workflows/make-test.yml @@ -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