Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-work pipeline #30

Merged
merged 1 commit into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
13 changes: 13 additions & 0 deletions .github/workflows/environment-main-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,25 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@9a9194f87191a7e9055e3e9b95b8cfb13023bb08

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install esbuild
run: npm install -g esbuild

- name: Compile graphql
run: make graphql

- name: Configure AWS Access
uses: aws-actions/configure-aws-credentials@55f725fcb586ca16a5ed5b0d75d464defbfa831b
with:
role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT }}:role/${{ vars.AWS_ROLE }}
role-session-name: GitHubDeploy-${{ vars.ENVIRONMENT }}
aws-region: ${{ vars.AWS_REGION }}

- name: terraform apply
uses: dflook/terraform-apply@7d435d4d115a11e5db1e710ac969f5382f0f6f9f
with:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/environment-main-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,25 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@9a9194f87191a7e9055e3e9b95b8cfb13023bb08

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install esbuild
run: npm install -g esbuild

- name: Compile graphql
run: make graphql

- name: Configure AWS Access
uses: aws-actions/configure-aws-credentials@55f725fcb586ca16a5ed5b0d75d464defbfa831b
with:
role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT }}:role/${{ vars.AWS_ROLE }}
role-session-name: GitHubTest-${{ vars.ENVIRONMENT }}
aws-region: ${{ vars.AWS_REGION }}

- name: terraform plan
uses: dflook/terraform-plan@b0877a1bf56160160ab482f4aff8a12fff35fe06
with:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ terraform.rc
.validate
.apply
plan.tfplan

graphql/node_modules
graphql/mutation/*/appsync.js
graphql/query/*/appsync.js
2 changes: 1 addition & 1 deletion graphql/graphql.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ graphql/%/appsync.js: graphql/node_modules graphql/%/appsync.ts
--outdir=$*

graphql/node_modules: graphql/package.json
cd graphql && npm install
cd graphql && npm install && npm ci

GRAPHQL := $(patsubst %.ts,%.js,$(wildcard graphql/*/*/appsync.ts))

Expand Down
38 changes: 0 additions & 38 deletions graphql/mutation/createGame/appsync.js

This file was deleted.

1 change: 0 additions & 1 deletion graphql/node_modules/.bin/acorn

This file was deleted.

1 change: 0 additions & 1 deletion graphql/node_modules/.bin/eslint

This file was deleted.

1 change: 0 additions & 1 deletion graphql/node_modules/.bin/js-yaml

This file was deleted.

1 change: 0 additions & 1 deletion graphql/node_modules/.bin/node-which

This file was deleted.

1 change: 0 additions & 1 deletion graphql/node_modules/.bin/semver

This file was deleted.

1 change: 0 additions & 1 deletion graphql/node_modules/.bin/tsc

This file was deleted.

1 change: 0 additions & 1 deletion graphql/node_modules/.bin/tsserver

This file was deleted.

Loading
Loading