Skip to content

Commit

Permalink
Add a sentinel job to make gating checks easier
Browse files Browse the repository at this point in the history
  • Loading branch information
cnunciato committed Jul 8, 2024
1 parent e7ba319 commit ca6ab86
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/test-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:

jobs:
lint-ts:
name: Lint TypeScript
runs-on: pulumi-ubuntu-8core
permissions:
id-token: write
Expand All @@ -33,6 +34,7 @@ jobs:
tslint -c tslint.json **/*.ts
unit-ts:
name: Run TypeScript unit tests
runs-on: pulumi-ubuntu-8core
permissions:
id-token: write
Expand All @@ -56,6 +58,7 @@ jobs:
npm test
unit-py:
name: Run Python unit tests
runs-on: pulumi-ubuntu-8core
permissions:
id-token: write
Expand All @@ -79,6 +82,7 @@ jobs:
python -m pytest
unit-go:
name: Run Go unit tests
runs-on: pulumi-ubuntu-8core
permissions:
id-token: write
Expand All @@ -100,6 +104,7 @@ jobs:
run: go test

unit-dotnet:
name: Run .NET unit tests
runs-on: pulumi-ubuntu-8core
permissions:
id-token: write
Expand Down Expand Up @@ -130,6 +135,7 @@ jobs:
- testing-unit-fs-mocks

providers:
name: Run ${{ matrix.clouds }}${{ matrix.languages }} integration tests
runs-on: pulumi-ubuntu-8core
permissions:
id-token: write
Expand All @@ -147,7 +153,7 @@ jobs:
aws-role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Run ${{ matrix.clouds }}${{ matrix.languages }} Tests
- 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 }}
Expand Down Expand Up @@ -190,6 +196,7 @@ jobs:
- Fs

kubernetes:
name: Run Kubernetes integration tests
runs-on: pulumi-ubuntu-8core
permissions:
id-token: write
Expand Down Expand Up @@ -222,3 +229,16 @@ jobs:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
PULUMI_API: https://api.pulumi-staging.io
INFRA_STACK_NAME: ${{ github.sha }}-${{ github.run_number }}

sentinel:
runs-on: ubuntu-latest
steps:
- run: echo "All required checks have passed."
needs:
- lint-ts
- unit-ts
- unit-py
- unit-go
- unit-dotnet
- providers
- kubernetes

0 comments on commit ca6ab86

Please sign in to comment.