Skip to content

Only care about failing results #17

Only care about failing results

Only care about failing results #17

Workflow file for this run

name: Pipeline
on: push
env:
AWS_REGION: us-east-1
PIPENV_VENV_IN_PROJECT: true
jobs:
test-unit:
runs-on: ubuntu-latest
timeout-minutes: 5
env:
STAGE: local
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Install pipenv
run: python -m pip install --upgrade pipenv
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_wrapper: false
- name: Check format
run: make test-format
- name: Unit test
run: make test-unit
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: test-unit
timeout-minutes: 15
permissions:
id-token: write
contents: read
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Install pipenv
run: python -m pip install --upgrade pipenv
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_wrapper: false
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{env.AWS_REGION}}
role-to-assume: ${{ secrets.CI }}
role-duration-seconds: 900
role-skip-session-tagging: true
- name: Deploy to dev
run: make