Do some cleanup #42
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: | |
runs-on: pulumi-ubuntu-8core | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install tools and dependencies | |
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 files | |
run: | | |
make lint | |
unit-ts: | |
runs-on: pulumi-ubuntu-8core | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install tools and dependencies | |
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 unit tests | |
run: | | |
npm install | |
npx mocha -r ts-node/register ec2tests.ts | |
npx mocha -r ts-node/register bucket_pair_test.ts | |
working-directory: testing-unit-ts/mocha | |
unit-py: | |
runs-on: pulumi-ubuntu-8core | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install tools and dependencies | |
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 unit tests | |
run: | | |
python3 -m venv venv | |
source venv/bin/activate | |
pip3 install -r requirements.txt | |
python -m unittest | |
working-directory: testing-unit-py | |
unit-go: | |
runs-on: pulumi-ubuntu-8core | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install tools and dependencies | |
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 unit tests | |
run: | | |
go test | |
working-directory: testing-unit-go | |
unit-dotnet: | |
runs-on: pulumi-ubuntu-8core | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install tools and dependencies | |
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 unit tests | |
run: | | |
dotnet test | |
working-directory: ${{ matrix.source-dir }} | |
strategy: | |
fail-fast: false | |
matrix: | |
source-dir: | |
- testing-unit-cs | |
- testing-unit-cs-mocks | |
- testing-unit-fs-mocks | |
provider: | |
if: false | |
runs-on: pulumi-ubuntu-8core | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install tools and dependencies | |
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 ${{ matrix.clouds }}${{ matrix.languages }} 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 | |
- Cloud | |
languages: | |
- Cs | |
- Js | |
- Ts | |
- Py | |
- Fs |