Skip to content

Commit

Permalink
Merge pull request #3 from byu-oit/patch/wellknown
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer Tuft authored Jun 9, 2022
2 parents a2e4250 + cdc43a4 commit 021783a
Show file tree
Hide file tree
Showing 16 changed files with 366 additions and 215 deletions.
87 changes: 87 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Continuous Integration

on:
push:
branches: [ master ]
paths-ignore:
- README.md
- images/**/*
- .run/**/*
pull_request:
branches: [ master ]
types: [ opened, reopened, synchronize, edited ]
paths-ignore:
- README.md
- LICENSE
- iac

env:
node_version: "16"
tf_version: "1.2.2"
aws_key_name: "byu_oit_devx_prd_key"
aws_secret_name: "byu_oit_devx_prd_secret"

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{ env.node_version }}

- name: Install Node Dependencies
run: npm install

- name: Lint
run: npm lint

test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets[env.aws_key_name] }}
aws-secret-access-key: ${{ secrets[env.aws_secret_name] }}
aws-region: us-west-2

- name: Setup NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{ env.node_version }}

- name: Install Node Dependencies
run: npm install

- name: Test
run: npm test

terraform-format:
name: Terraform Format
runs-on: ubuntu-latest
needs: env
strategy:
matrix: ${{ fromJson(needs.env.outputs.matrix) }}
steps:
- uses: actions/checkout@v2

- name: Terraform Setup
uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ env.tf_version }}

- name: Terraform Format
run: terraform fmt -check -recursive
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ node_modules

# Package Lock
package-lock.json

# Terraform
.terraform
*.tfvars
49 changes: 0 additions & 49 deletions .repo-meta.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .vscode/launch.json

This file was deleted.

3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright {yyyy} {name of copyright owner}
Copyright 2022 Brigham Young University

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 021783a

Please sign in to comment.