Skip to content

Commit

Permalink
Run the nonroot tests in parallel with the root tests (#362)
Browse files Browse the repository at this point in the history
This saves us ~15 minutes on the slowest CI job πŸŽ‰
  • Loading branch information
julienp authored Jan 7, 2025
1 parent b5f2a05 commit 8cd8917
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ jobs:
# Note we use /src/pulumi-test-containers as entrypoint and not bash to avoid bash
# changing the environment in some way.
run: |
chmod o+r $GOOGLE_APPLICATION_CREDENTIALS
docker run \
-e RUN_CONTAINER_TESTS=true \
-e IMAGE_VARIANT=pulumi \
Expand All @@ -173,10 +174,7 @@ jobs:
--volume /tmp:/src \
--entrypoint /src/pulumi-test-containers \
${{ env.DOCKER_ORG }}/pulumi:${{ env.PULUMI_VERSION }} \
-test.timeout=1h -test.v
- name: Tests for nonroot variant
run: |
chmod o+r $GOOGLE_APPLICATION_CREDENTIALS
-test.timeout=1h -test.v | sed 's/.*/[root] &/' &
docker run \
-e RUN_CONTAINER_TESTS=true \
-e IMAGE_VARIANT=pulumi-nonroot \
Expand All @@ -197,7 +195,8 @@ jobs:
--volume /tmp:/src \
--entrypoint /src/pulumi-test-containers \
${{ env.DOCKER_ORG }}/pulumi:${{ env.PULUMI_VERSION }}-nonroot \
-test.timeout=1h -test.v
-test.timeout=1h -test.v | sed 's/.*/[nonroot] &/' &
wait
provider-build-environment:
name: Provider Build Environment image
Expand Down

0 comments on commit 8cd8917

Please sign in to comment.