-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ defaults: | |
shell: bash -el {0} | ||
|
||
jobs: | ||
main: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -24,3 +24,38 @@ jobs: | |
- uses: pre-commit/[email protected] | ||
- uses: pre-commit-ci/[email protected] | ||
if: always() | ||
|
||
run-demo: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Start demo | ||
run: | | ||
./run_demo.sh --exit-when-done | ||
- name: Check for success | ||
run: | | ||
if [ ! -f ".demo/.success" ]; then | ||
echo "Demo failed" | ||
cat ".demo/.failed" | ||
exit 1 | ||
fi | ||
# Same as run-demo except mount the sources inside the container | ||
run-demo-mount-sources: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Clone source | ||
run: | | ||
git clone https://github.com/DIRACGrid/diracx.git /tmp/diracx | ||
git clone https://github.com/DIRACGrid/DIRAC.git /tmp/DIRAC | ||
- name: Start demo | ||
run: | | ||
./run_demo.sh --exit-when-done /tmp/diracx /tmp/DIRAC | ||
- name: Check for success | ||
run: | | ||
if [ ! -f ".demo/.success" ]; then | ||
echo "Demo failed" | ||
cat ".demo/.failed" | ||
exit 1 | ||
fi |