Update version number to 4.24.0 #249
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DS Tests | |
on: [push, pull_request] | |
jobs: | |
init: | |
name: Initialization | |
uses: ./.github/workflows/init.yml | |
secrets: inherit | |
build: | |
name: Waiting for build | |
needs: init | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait for build | |
uses: lewagon/[email protected] | |
with: | |
ref: ${{ github.ref }} | |
check-name: 'Building LDAP SDK' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
wait-interval: 30 | |
if: github.event_name == 'push' | |
- name: Wait for build | |
uses: lewagon/[email protected] | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
check-name: 'Building LDAP SDK' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
wait-interval: 30 | |
if: github.event_name == 'pull_request' | |
ds-test: | |
name: Testing DS | |
needs: [init, build] | |
runs-on: ubuntu-latest | |
env: | |
SHARED: /tmp/workdir/ldapjdk | |
steps: | |
- name: Clone the repository | |
uses: actions/checkout@v3 | |
- name: Retrieve ldapjdk-runner image | |
uses: actions/cache@v3 | |
with: | |
key: ldapjdk-runner-${{ github.sha }} | |
path: ldapjdk-runner.tar | |
- name: Load runner image | |
run: docker load --input ldapjdk-runner.tar | |
- name: Run container | |
run: | | |
IMAGE=ldapjdk-runner \ | |
NAME=ds \ | |
HOSTNAME=ds.example.com \ | |
tests/bin/runner-init.sh | |
- name: Install DS package | |
run: docker exec ds dnf install -y 389-ds-base | |
- name: Create DS instance | |
run: docker exec ds ${SHARED}/tests/bin/ds-create.sh | |
- name: Verify LDAP tools | |
run: docker exec ds ${SHARED}/tests/bin/tools-test.sh | |
- name: Gather artifacts | |
if: always() | |
run: | | |
tests/bin/ds-artifacts-save.sh ds | |
- name: Remove DS instance | |
run: docker exec ds ${SHARED}/tests/bin/ds-remove.sh | |
- name: Upload artifacts | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ds | |
path: | | |
/tmp/artifacts/ds |