Use shared workflow #1
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: Docker CI | ||
on: | ||
push: | ||
release: | ||
workflow_dispatch: | ||
jobs: | ||
prereqs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Check for required files | ||
run: | | ||
errors=0 | ||
required_files=(bin/setup bin/test docker-compose.yml docker-compose.ci.yml) | ||
for file in "${required_files[@]}"; do | ||
if [ -f "$file" ]; then | ||
echo "$file found" | ||
else | ||
echo "$file not found" | ||
errors=$((errors + 1)) | ||
fi | ||
done | ||
exit $errors | ||
build: | ||
needs: prereqs | ||
uses: BerkeleyLibrary/.github/workflows/docker-build.yml@main | ||
Check failure on line 34 in .github/workflows/docker-ci.yml GitHub Actions / .github/workflows/docker-ci.ymlInvalid workflow file
|
||
test: | ||
needs: build | ||
uses: BerkeleyLibrary/.github/workflows/docker-test.yml@main |