Added updated Mojaloop license #24
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
name: "Smoke test Terraform module" | |
on: | |
pull_request: | |
push: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
# Setup | |
- uses: actions/checkout@v2.3.4 | |
- uses: cachix/install-nix-action@v13 | |
with: | |
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17.tar.gz | |
- run: nix-env -if default.nix | |
# Tests | |
- run: terraform fmt -check terraform/ | |
- run: terraform init terraform/ | |
- run: terraform validate terraform/ | |
- run: |- | |
terraform plan \ | |
-var 'auth_server_clientkey=fjkdsalfjdskal3784291732841' \ | |
-var 'auth_server_clientsecret=kfsdlja_327418kalfjdksalh_789' \ | |
-out plan \ | |
terraform/ | |
- run: terraform show -json plan > plan.json | |
- name: Check the users generated by terraform pass the schema | |
run: jsonschema -i <(jq -r '.configuration.root_module.variables.portal_users.default' plan.json) src/imports/users.schema.json |