Merge pull request #8 from pscedu/dust-0.8.6 #66
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: Singularity build | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
singularity_version: | |
- '3.7.3' | |
container: | |
image: quay.io/singularity/singularity:v${{ matrix.singularity_version }} | |
options: --privileged | |
steps: | |
- name: Check out code for the container build | |
uses: actions/checkout@v1 | |
- name: Install useful utilities | |
run: apk update && apk add --no-cache tree figlet wget | |
- name: Build and test container | |
run: | | |
for DIRECTORY in * | |
do | |
if [ -d $DIRECTORY ]; then | |
if [[ $DIRECTORY != 'images' ]]; then | |
cd $DIRECTORY | |
if [ ! -f .ignore ]; then | |
echo "Building container" | |
bash ./build.sh | |
if [ -f ./test.sh ]; then | |
echo "Running tests" | |
bash ./test.sh | |
else | |
echo "Test file not found. Skipping tests." | |
fi | |
fi | |
cd .. | |
fi | |
fi | |
done |