Skip to content

Commit

Permalink
workflows/integration: use matrix strategy
Browse files Browse the repository at this point in the history
Signed-off-by: Ondrej Moris <[email protected]>
  • Loading branch information
The-Mule authored and simo5 committed Mar 13, 2024
1 parent 4780b08 commit ec4a4a1
Showing 1 changed file with 10 additions and 59 deletions.
69 changes: 10 additions & 59 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,79 +8,30 @@ on:
branches: ["main"]

jobs:
libssh:
test:
runs-on: ubuntu-22.04
container: docker.io/dokken/fedora-40
strategy:
fail-fast: false
matrix:
test: [libssh, httpd, bind]
name: ${{ matrix.test }}
container: fedora:rawhide
env:
PKCS11_MODULE: /usr/lib64/ossl-modules/pkcs11.so
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install Build Requirements
run: |
dnf -y install git autoconf autoconf-archive automake libtool \
openssl-devel
- name: Setup, Build and Install pkcs11-provider
run: |
autoreconf -fiv
./configure --libdir=/usr/lib64
make
make install
- name: Test
run: |
export PKCS11_MODULE=/usr/lib64/ossl-modules/pkcs11.so
pushd tests/integration
bash -e libssh.sh
httpd:
runs-on: ubuntu-22.04
# TODO: Change to fedora:latest once F40 is released
container: docker.io/dokken/fedora-40
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install Build Requirements
run: |
dnf -y install autoconf autoconf-archive automake libtool \
openssl-devel
- name: Setup, Build and Install pkcs11-provider
run: |
autoreconf -fiv
./configure --libdir=/usr/lib64
make
make install
- name: Test
run: |
export PKCS11_MODULE=/usr/lib64/ossl-modules/pkcs11.so
pushd tests/integration
bash -e httpd.sh
bind:
runs-on: ubuntu-22.04
# TODO: Change to fedora:latest once F40 is released
container: docker.io/dokken/fedora-40
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install Build Requirements
run: |
dnf -y install autoconf autoconf-archive automake libtool \
openssl-devel
- name: Setup, Build and Install pkcs11-provider
run: |
autoreconf -fiv
./configure --libdir=/usr/lib64
make
make install
- name: Test
run: |
export PKCS11_MODULE=/usr/lib64/ossl-modules/pkcs11.so
pushd tests/integration
bash -e bind.sh
bash -e ${{ matrix.test }}.sh

0 comments on commit ec4a4a1

Please sign in to comment.