diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 195e967..1a49941 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 \ @@ -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 @@ -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 }}