Update first-party Pulumi dependencies to v2.83.0-alpha.1736759964 #552
Workflow file for this run
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
name: Test examples | |
on: | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: 0 9 * * * | |
repository_dispatch: | |
types: | |
- run-tests-command | |
workflow_dispatch: {} | |
jobs: | |
lint-ts: | |
name: TypeScript lint checks | |
runs-on: pulumi-ubuntu-8core | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Set up the environment | |
uses: ./.github/actions/setup | |
id: setup | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Lint | |
run: | | |
tslint -c tslint.json **/*.ts | |
unit-ts: | |
name: TypeScript unit tests | |
runs-on: pulumi-ubuntu-8core | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Set up the environment | |
uses: ./.github/actions/setup | |
id: setup | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: unit tests | |
working-directory: testing-unit-ts/mocha | |
run: | | |
npm install | |
npm test | |
format-py: | |
name: Python Code Format and Validation | |
runs-on: pulumi-ubuntu-8core | |
steps: | |
# Step 1: Checkout the repository | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
# Step 2: Set up Python | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 # Adjust the version as needed | |
# Step 3: Install Make (already installed on Ubuntu, but explicit just in case) | |
- name: Ensure Make is Installed | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y make | |
# Step 4: Run Makefile targets | |
- name: Run Make Targets | |
run: | | |
make check_python_formatting | |
unit-py: | |
name: Python unit tests | |
runs-on: pulumi-ubuntu-8core | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Set up the environment | |
uses: ./.github/actions/setup | |
id: setup | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: unit tests | |
working-directory: testing-unit-py | |
run: | | |
pip install -r requirements.txt | |
python -m pytest | |
unit-go: | |
name: Go unit tests | |
runs-on: pulumi-ubuntu-8core | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Set up the environment | |
uses: ./.github/actions/setup | |
id: setup | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: unit tests | |
working-directory: testing-unit-go | |
run: go test | |
unit-dotnet: | |
name: .NET unit tests | |
runs-on: pulumi-ubuntu-8core | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Set up the environment | |
uses: ./.github/actions/setup | |
id: setup | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: unit tests | |
working-directory: ${{ matrix.source-dir }} | |
run: | | |
dotnet test | |
strategy: | |
fail-fast: false | |
matrix: | |
source-dir: | |
- testing-unit-cs | |
- testing-unit-cs-mocks | |
- testing-unit-fs-mocks | |
providers: | |
name: ${{ matrix.clouds }}${{ matrix.languages }} integration tests | |
runs-on: pulumi-ubuntu-8core | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Set up the environment | |
uses: ./.github/actions/setup | |
id: setup | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run tests | |
run: make specific_test_set TestSet=${{ matrix.clouds }}${{ matrix.languages }} | |
env: | |
AWS_ACCESS_KEY_ID: ${{ steps.setup.outputs.aws-access-key-id }} | |
AWS_SECRET_ACCESS_KEY: ${{ steps.setup.outputs.aws-secret-access-key }} | |
AWS_SESSION_TOKEN: ${{ steps.setup.outputs.aws-session-token }} | |
AWS_REGION: ${{ steps.setup.outputs.aws-region }} | |
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }} | |
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }} | |
ARM_ENVIRONMENT: public | |
ARM_LOCATION: westus | |
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }} | |
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }} | |
GOOGLE_PROJECT: ${{ steps.setup.outputs.google-project-name }} | |
GOOGLE_REGION: ${{ steps.setup.outputs.google-region }} | |
GOOGLE_ZONE: ${{ steps.setup.outputs.google-zone }} | |
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }} | |
PACKET_AUTH_TOKEN: ${{ secrets.PACKET_AUTH_TOKEN }} | |
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | |
PULUMI_API: https://api.pulumi-staging.io | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- pulumi-ubuntu-8core | |
clouds: | |
- DigitalOcean | |
- Aws | |
- Azure | |
- Gcp | |
- Packet | |
- EquinixMetal | |
languages: | |
- Cs | |
- Js | |
- Ts | |
- Py | |
- Fs | |
kubernetes: | |
name: Kubernetes integration tests | |
runs-on: pulumi-ubuntu-8core | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Set up the environment | |
uses: ./.github/actions/setup | |
id: setup | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Minikube | |
uses: manusa/actions-setup-minikube@v2.13.0 | |
with: | |
minikube version: 'v1.34.0' | |
kubernetes version: 'v1.31.1' | |
driver: docker | |
start args: --cpus 2 --memory 4096 --addons metallb --wait all | |
- name: Configure MetalLB | |
run: | | |
cat <<EOF | kubectl apply -f - | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
namespace: metallb-system | |
name: config | |
data: | |
config: | | |
address-pools: | |
- name: default | |
protocol: layer2 | |
addresses: | |
- 192.168.49.240-192.168.49.250 | |
EOF | |
- name: Run tests | |
run: | | |
make specific_test_set TestSet=Kubernetes | |
env: | |
AWS_ACCESS_KEY_ID: ${{ steps.setup.outputs.aws-access-key-id }} | |
AWS_SECRET_ACCESS_KEY: ${{ steps.setup.outputs.aws-secret-access-key }} | |
AWS_SESSION_TOKEN: ${{ steps.setup.outputs.aws-session-token }} | |
AWS_REGION: ${{ steps.setup.outputs.aws-region }} | |
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | |
PULUMI_API: https://api.pulumi-staging.io | |
INFRA_STACK_NAME: ${{ github.sha }}-${{ github.run_number }} |