diff --git a/.github/workflows/test_cellranger_atac.yaml b/.github/workflows/test_cellranger_atac.yaml new file mode 100644 index 0000000..a8d45c6 --- /dev/null +++ b/.github/workflows/test_cellranger_atac.yaml @@ -0,0 +1,27 @@ +name: Test Spaceranger Version + +on: + push: + branches: [ main ] + paths: + - 'dockerhub_repos/cellranger-atac/**' + +jobs: + test_cellranger_version: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Validate version consistency + run: | + # Extract the expected version from the 'spaceranger --version' output + VERSION=$(docker run ccrsfifx/cellranger-atac:2.1.0 cellranger-atac --version | awk '{print $2}') + # Compare with the Docker Hub tag + if [[ "$VERSIONV" != "cellranger-atac-2.1.0" ]]; then + echo "Error: Cellranger-atac version ($VERSIONV) doesn't match Docker Hub tag (${{ steps.tag-info.outputs.tag }})" + exit 1 + else + echo "Cellranger-atac version matches Docker Hub tag." + fi