Update version #750
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
# Build for 4dn-cloud-infra | |
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Validate 4dn-cloud-infra stacks build successfully | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install | |
run: make build | |
- name: Mock | |
run: | | |
# Write a suitable config.json for (primitive) testing | |
mkdir custom | |
mkdir custom/aws_creds | |
echo {\"deploying_iam_user\": \"test\", \"ENCODED_ENV_NAME\": \"cgap-build\", \"account_number\": 123, \"app.kind\": \"cgap\"} > custom/config.json | |
echo {\"Auth0Client\": \"test\", \"Auth0Secret\": \"test\", \"ENCODED_SECRET\": \"test\", \"S3_ENCRYPT_KEY\": \"test\"} > custom/secrets.json | |
- name: Unit | |
run: | | |
make test | |
- name: Validate | |
run: | | |
# will not pass as of right now | |
# test locally | |
# make alpha | |
echo "Run 'make alpha' locally" |