Skip to content

Commit

Permalink
chore(infrastructure): github actions (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasticFiasco committed Oct 10, 2023
1 parent 79d18b9 commit ce1ba93
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 12 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/infrastructure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: infrastructure

on:
push:
branches:
- "**"
paths:
- .github/workflows/infrastructure.yml
- infrastructure/**
workflow_dispatch:

defaults:
run:
working-directory: infrastructure

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: lts/*
check-latest: true
- run: npm ci
- run: npm run build
- run: npm run lint
9 changes: 0 additions & 9 deletions build/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,3 @@ if ($is_pull_request -eq $true) {
AssertLastExitCode
}
}

# -------------------------------------------------------------------------------------------------
# INFRASTRUCTURE
# -------------------------------------------------------------------------------------------------
Print "infrastructure" "build started"
Print "infrastructure" "node $(node --version)"
cd ./infrastructure
npm ci
npm run build
4 changes: 2 additions & 2 deletions infrastructure/lib/api-gateway/handlers/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ interface HttpResponse {
interface ReceivedRequest {
method: string
path: string
queryStringParameters: { [name: string]: string[] | undefined; } | null
headers: { [name: string]: string[] | undefined; } | null
queryStringParameters: { [name: string]: string[] | undefined } | null
headers: { [name: string]: string[] | undefined } | null
body: string | null
}

Expand Down
2 changes: 1 addition & 1 deletion infrastructure/lib/users/users-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class UsersStack extends Stack {
new PolicyStatement({
actions: ['execute-api:Invoke', 'execute-api:ManageConnections'],
resources: ['arn:aws:execute-api:*:*:*'],
})
}),
)

// Create outputs
Expand Down

0 comments on commit ce1ba93

Please sign in to comment.