Merge pull request #304 from mksanger/server_version_command #201
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: "Unit tests" | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ matrix.experimental }} # Experimental builds may fail | |
strategy: | |
matrix: | |
include: | |
# iRODS 4.2.7 clients on Ubuntu 16.04 | |
- irods: "4.2.7" | |
build_image: "ghcr.io/wtsi-npg/ub-16.04-irods-clients-dev-4.2.7:latest" | |
server_image: "ghcr.io/wtsi-npg/ub-16.04-irods-4.2.7:latest" | |
experimental: false | |
# iRODS 4.2.11 clients on Ubuntu 18.04 | |
- irods: "4.2.11" | |
build_image: "ghcr.io/wtsi-npg/ub-18.04-irods-clients-dev-4.2.11:latest" | |
server_image: "ghcr.io/wtsi-npg/ub-18.04-irods-4.2.11:latest" | |
experimental: false | |
# iRODS 4.2.12 clients on Ubuntu 18.04 | |
- irods: "4.2.12" | |
build_image: "ghcr.io/wtsi-npg/ub-18.04-irods-clients-dev-4.2.12:latest" | |
server_image: "ghcr.io/wtsi-npg/ub-18.04-irods-4.2.12:latest" | |
experimental: false | |
# iRODS 4.3.1 clients on Ubuntu 22.04 | |
- irods: "4.3.1" | |
build_image: "ghcr.io/wtsi-npg/ub-22.04-irods-clients-dev-4.3.1:latest" | |
server_image: "ghcr.io/wtsi-npg/ub-22.04-irods-4.3.1:latest" | |
experimental: false | |
# iRODS 4.3.2 clients on Ubuntu 22.04 | |
- irods: "4.3.2" | |
build_image: "ghcr.io/wtsi-npg/ub-22.04-irods-clients-dev-4.3.2:latest" | |
server_image: "ghcr.io/wtsi-npg/ub-22.04-irods-4.3.2:latest" | |
experimental: true | |
# iRODS 4.3.3 clients on Ubuntu 22.04 | |
- irods: "4.3.3" | |
build_image: "ghcr.io/wtsi-npg/ub-22.04-irods-clients-dev-4.3.3:latest" | |
server_image: "ghcr.io/wtsi-npg/ub-22.04-irods-4.3.3:latest" | |
experimental: true | |
services: | |
irods-server: | |
image: ${{ matrix.server_image }} | |
ports: | |
- "1247:1247" | |
- "20000-20199:20000-20199" | |
volumes: | |
- /dev/shm:/dev/shm | |
options: >- | |
--health-cmd "nc -z -v localhost 1247" | |
--health-start-period 60s | |
--health-interval 10s | |
--health-timeout 20s | |
--health-retries 6 | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Build and test baton" | |
uses: wtsi-npg/build-irods-client-action@v1.1.1 | |
with: | |
build-image: | |
${{ matrix.build_image }} | |
build-script: | |
.github/workflows/build-tests.sh | |
docker-network: | |
${{ job.services.irods-server.network }} | |
- name: "Show test log" | |
if: ${{ failure() }} | |
run: | | |
find "$GITHUB_WORKSPACE" -name \*.log -exec cat {} \; |