FPAD-7234: Cleanup roles with inline policies v2 (#753) #703
This file contains hidden or 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: Run Pact Tests For Message Consumer | |
| env: | |
| PACT_BROKER_USER: ${{ secrets.PACT_BROKER_USER }} | |
| PACT_BROKER_PASSWORD: ${{ secrets.PACT_BROKER_PASSWORD }} | |
| PACT_BROKER_URL: ${{ secrets.PACT_BROKER_URL }} | |
| PACT_BROKER_SOURCE_SECRET: ${{ secrets.PACT_BROKER_SOURCE_SECRET }} | |
| GIT_BRANCH: ${{ github.head_ref || github.ref_name }} | |
| CONSUMER_APP_VERSION: ${{ github.sha }} | |
| on: | |
| push: | |
| paths: | |
| - src/** | |
| - package.json | |
| - yarn.lock | |
| - tsconfig.json | |
| - .node-version | |
| - .github/workflows/pact-test-message-consumer.yaml | |
| branches: | |
| - main | |
| pull_request: | |
| paths: | |
| - src/** | |
| - package.json | |
| - yarn.lock | |
| - tsconfig.json | |
| - .node-version | |
| - .github/workflows/pact-test-message-consumer.yaml | |
| branches: | |
| - main | |
| types: | |
| - opened | |
| - reopened | |
| - ready_for_review | |
| - synchronize | |
| workflow_dispatch: | |
| inputs: | |
| gitRef: | |
| description: "Input branch name, commit SHA, or tag" | |
| required: true | |
| type: string | |
| default: main | |
| permissions: | |
| contents: read | |
| jobs: | |
| contract-testing: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # pin@v3 | |
| with: | |
| ref: ${{ inputs.gitRef || github.ref }} | |
| - name: Setup NodeJS | |
| uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # pin@v3 | |
| with: | |
| node-version-file: '.node-version' | |
| cache: 'yarn' | |
| - name: Run yarn install | |
| run: yarn install --frozen-lockfile | |
| - name: Run Pact Tests for Message Consumers | |
| run: yarn test:pact:consumer | |
| env: | |
| NODE_OPTIONS: "--experimental-vm-modules" | |
| - name: Publish Pact Files | |
| if: github.ref_name == 'main' | |
| run: | | |
| yarn connect:pact:broker | |
| yarn pact:publish:contracts |