Skip to content

EM-933 Throttling errors withing send-message state machine #221

EM-933 Throttling errors withing send-message state machine

EM-933 Throttling errors withing send-message state machine #221

Workflow file for this run

name: pull-request
on:
pull_request:
branches:
- develop
jobs:
coverage:
runs-on: ubuntu-latest
if: github.repository == 'NHSDigital/terraform-aws-mesh-client'
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: common build setup
uses: ./.github/actions/build-common
- name: ci install
uses: ./.github/actions/install-ci
- name: black
run: make black-check
- name: start localstack
run: make up-ci
- name: coverage and sonar scan
uses: ./.github/actions/coverage-and-sonar
if: github.actor != 'dependabot[bot]' && (success() || failure())
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
sonar-token: ${{ secrets.SONAR_TOKEN }}
- name: archive reports
if: github.actor != 'dependabot[bot]' && (success() || failure())
uses: actions/upload-artifact@v4
with:
name: reports
path: reports/**/*
- name: publish junit reports
if: success() || failure()
uses: mikepenz/action-junit-report@v4
with:
check_name: junit reports
report_paths: reports/junit/*.xml
- name: stop docker containers
if: success() || failure()
run: make down
tox:
strategy:
matrix:
python-version: ["3.11", "3.12"]
runs-on: ubuntu-latest
if: github.repository == 'NHSDigital/terraform-aws-mesh-client'
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: common build setup
uses: ./.github/actions/build-common
with:
force-python-version: ${{ matrix.python-version }}
- name: ci install
uses: ./.github/actions/install-ci
- name: install tox-github-ci plugin
run: pip install tox-gh-actions
- name: black
run: make black-check
- name: start localstack
run: make up-ci
- name: run tests in tox
run: make tox
- name: stop docker containers
if: success() || failure()
run: make down
lint:
runs-on: ubuntu-latest
if: github.repository == 'NHSDigital/terraform-aws-mesh-client'
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: common build setup
uses: ./.github/actions/build-common
- name: ci install
uses: ./.github/actions/install-ci
- name: black
run: make black-check
- name: tfsec
run: |
TFSEC_VERSION="v$(cat .tool-versions | grep tfsec | sed 's#tfsec ##')"
echo "${TFSEC_VERSION}"
wget -q "https://github.com/aquasecurity/tfsec/releases/download/${TFSEC_VERSION}/tfsec-linux-amd64" -O ./tfsec
chmod +x ./tfsec
./tfsec module --config-file tfsec.yml
- name: tflint
run: make tflint
- name: ruff
run: make ruff-ci
- name: mypy
run: make mypy
- name: shellcheck
uses: ludeeus/action-shellcheck@master
with:
ignore_paths: .venv build
ignore_names: git-secrets
env:
SHELLCHECK_OPTS: -f gcc -e SC1090,SC1091