-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tests] make each iteration longer in the sleep tests.
It is slow on github actions due to many tests running in parallel.
- Loading branch information
Showing
3 changed files
with
48 additions
and
2 deletions.
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 |
---|---|---|
|
@@ -27,6 +27,7 @@ jobs: | |
shellcheck src/*.sh tests/*.sh | ||
set +e | ||
# Use a matrix to make it easier to find which test fails. | ||
test_scripts: | ||
name: Test scripts | ||
runs-on: ubuntu-latest | ||
|
@@ -66,6 +67,26 @@ jobs: | |
run: | | ||
bash shellspec --pattern tests/${{ matrix.test_suit }} | ||
test_scripts_parallel: | ||
name: Test scripts running in parallel | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
- name: Install shellspec | ||
run: | | ||
mkdir -p ~/shellspec | ||
cd ~/shellspec | ||
git clone https://github.com/shellspec/shellspec.git | ||
ln -s ~/shellspec/shellspec/shellspec /usr/local/bin/shellspec | ||
echo -n "shellspec version: " | ||
shellspec --version | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
- name: Run container tests | ||
run: | | ||
bash shellspec --jobs 50 | ||
test_container: | ||
name: Test container | ||
runs-on: ubuntu-latest | ||
|
@@ -88,4 +109,4 @@ jobs: | |
export GANTRY_TEST_CONTAINER_REPO_TAG= | ||
echo "GANTRY_TEST_CONTAINER=${GANTRY_TEST_CONTAINER}" | ||
echo "GANTRY_TEST_CONTAINER_REPO_TAG=${GANTRY_TEST_CONTAINER_REPO_TAG}" | ||
bash shellspec --jobs 50 | ||
bash shellspec --jobs 50 |
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 |
---|---|---|
|
@@ -30,6 +30,7 @@ jobs: | |
shellcheck src/*.sh tests/*.sh | ||
set +e | ||
# Use a matrix to make it easier to find which test fails. | ||
test_scripts: | ||
name: Test scripts | ||
runs-on: ubuntu-latest | ||
|
@@ -69,6 +70,26 @@ jobs: | |
run: | | ||
bash shellspec --pattern tests/${{ matrix.test_suit }} | ||
test_scripts_parallel: | ||
name: Test scripts running in parallel | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
- name: Install shellspec | ||
run: | | ||
mkdir -p ~/shellspec | ||
cd ~/shellspec | ||
git clone https://github.com/shellspec/shellspec.git | ||
ln -s ~/shellspec/shellspec/shellspec /usr/local/bin/shellspec | ||
echo -n "shellspec version: " | ||
shellspec --version | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
- name: Run container tests | ||
run: | | ||
bash shellspec --jobs 50 | ||
test_container: | ||
name: Test container | ||
runs-on: ubuntu-latest | ||
|
@@ -100,6 +121,7 @@ jobs: | |
needs: | ||
- shellcheck | ||
- test_scripts | ||
- test_scripts_parallel | ||
- test_container | ||
steps: | ||
- name: Checkout Code | ||
|
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