Skip to content

Commit

Permalink
Only run basic tests for kitchen sink on arm64 (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienp authored Sep 26, 2024
1 parent daba583 commit f13bf49
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,17 @@ jobs:
}}/providers/${{ env.GCP_WORKLOAD_IDENTITY_PROVIDER }}
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
- name: Select Tests for AMD64
if: ${{ matrix.arch == 'amd64' }}
# Run all tests on AMD64
run: echo "CONTAINER_TESTS_TO_RUN=''" >> $GITHUB_ENV
- name: Select Tests for ARM64
if: ${{ matrix.arch == 'arm64' }}
# We use QEMU to run ARM64 images on AMD64, but .NET Core isn't supported by QEMU,
# for now we only run the basic TestEnvironment tests on ARM64.
# https://gitlab.com/qemu-project/qemu/-/issues/249
# TODO: enable more tests https://github.com/pulumi/pulumi-docker-containers/issues/289
run: echo "CONTAINER_TESTS_TO_RUN='-test.run TestEnvironment' >> $GITHUB_ENV
- name: Tests
run: |
docker run \
Expand All @@ -153,7 +164,7 @@ jobs:
--volume /tmp:/src \
--entrypoint /src/pulumi-test-containers \
${{ env.DOCKER_ORG }}/pulumi:${{ env.PULUMI_VERSION }}-${{ matrix.arch }} \
-test.timeout=1h -test.v
-test.timeout=1h -test.v ${{ env.CONTAINER_TESTS_TO_RUN }}
- name: Tests for nonroot variant
run: |
chmod o+r $GOOGLE_APPLICATION_CREDENTIALS
Expand All @@ -177,7 +188,7 @@ jobs:
--volume /tmp:/src \
--entrypoint /src/pulumi-test-containers \
${{ env.DOCKER_ORG }}/pulumi:${{ env.PULUMI_VERSION }}-nonroot-${{ matrix.arch }} \
-test.timeout=1h -test.v
-test.timeout=1h -test.v ${{ env.CONTAINER_TESTS_TO_RUN }}
- name: Push ${{ env.PULUMI_VERSION }}
run: |
docker push ${{ env.DOCKER_ORG }}/pulumi:${{ env.PULUMI_VERSION }}-${{ matrix.arch }}
Expand Down

0 comments on commit f13bf49

Please sign in to comment.