Skip to content

Commit

Permalink
feat: fixed syllabus scraper and initiating forum tables apis and lam…
Browse files Browse the repository at this point in the history
…bdas (#268)

* chore(deps): update dependency eslint to v8.9.0 (#141)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update amannn/action-semantic-pull-request action to v4.2.0 (#140)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.70 (#138)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.71 (#145)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update pnpm/action-setup action to v2.2.0 (#142)

Co-authored-by: Renovate Bot <[email protected]>

* feat: lambda for put-timetable (#144)

* feat: lambda for put-timetable

* deleted newline for put-timetable.

* changed file name for consistency

* chore(deps): update actions/setup-node action to v3 (#148)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update pnpm/action-setup action to v2.2.1 (#147)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.72 (#146)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.12.1 (#143)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.14.0 (#133)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.74 (#150)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency eslint to v8.10.0 (#149)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency typescript to v4.6.2 (#153)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.15.0 (#154)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.75 (#152)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency ts-node to v10.6.0 (#155)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update actions/checkout action to v3 (#156)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.13.0 (#151)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.76 (#157)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.77 (#158)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.79 (#159)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.14.0 (#162)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency ts-node to v10.7.0 (#161)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.81 (#160)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.82 (#163)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.83 (#164)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.16.0 (#168)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update endbug/add-and-commit action to v9 (#167)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency @commitlint/cli to v16.2.3 (#170)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.15.0 (#169)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.90 (#165)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update peter-evans/find-comment action to v2 (#175)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update peter-evans/create-or-update-comment action to v2 (#174)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.17.0 (#171)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.92 (#172)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.16.0 (#173)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency eslint-import-resolver-typescript to v2.7.0 (#176)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.19.0 (#183)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.17.0 (#182)

Co-authored-by: Renovate Bot <[email protected]>

* feat: api for put-timetable lambda. (#179)

* feat: api for put-timetable lambda.

* feat: fixed syntax errors

* feat: fixed syntax error (2)

* chore(deps): update dependencies

* chore: add lint-staged

* chore(deps): update codecov/codecov-action action to v3 (#186)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update amannn/action-semantic-pull-request action to v4.3.0 (#189)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.22.0

* chore(deps): update github/codeql-action action to v2 (#192)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update amannn/action-semantic-pull-request action to v4.4.0 (#190)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependencies

* chore(deps): update amannn/action-semantic-pull-request action to v4.5.0

* chore(deps): update dependency husky to v8

* chore(deps): update dependency @commitlint/cli to v16.3.0

* chore(deps): update dependency standard-version to v9.5.0

* chore(deps): update aws-cdk monorepo to v2.27.0

* chore(deps): update dependency ts-jest to v28.0.4

* chore(deps): update dependency eslint to v8.17.0

* chore(deps): update dependency ts-node to v10.8.1

* chore(deps): update typescript-eslint monorepo to v5.27.1

* chore(deps): update jest monorepo

* chore(deps): update dependency constructs to v10.1.32

* chore(deps): update dependencies

* chore(deps): update pnpm/action-setup action to v2.2.2

* chore(deps): update dependency typescript to v4.7.3

* chore(deps): update dependencies

* f:added Put method into default Headers for new api function put-timetable (#216)

* feat: updated pnpm-lock file to latest

* feat: uploading updated package file

* feat: updating package-lock file

* fix: modified jest config file

* fix: update jest config

* fix: configured rest api settings  (#221)

* fix: config rest api

* fix: update jest config

* fix: jest types

* fix: update pnpm lock

* fix: deleted package-lock

* feat: creating only database and not API (#225)

* f:added Put method into default Headers for new api function put-timetable

* feat: adding table and api

* feat: for backup

* feat: updated pnpm-lock

* feat: initiating database creation

* feat: redoing databases

* feat: building database thread

* fix: fix git branch merging error (#226)

* fix: fix git branch merging error

* fix: fixing minor issues

* fix: hotfix

* fix: fixing db

* fix(deps): update dependency flatted to v3.2.7 (#215)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update jest monorepo (#210)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency husky to v8.0.2 (#227)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat: renamed forum database and fixed multiple api (#230)

* feat: updated api get schema and renamed database

* fix: fix lambda function

* fix: fixed lambda get single thread and others

* fix: changed already existing db role name (#231)

* feat: updated api get schema and renamed database

* fix: fix lambda function

* fix: fixed lambda get single thread and others

* fix: fix already existing db role

* feat: editing forum restapi resources and added multiple CRUD lambda functions (#232)

* feat: altered api resources Trying to resolve multiple trigger issue in one lambda function

* feat: added lambdas delete patch and post fixed minor issues in other lambdas

* fix: erased unused library

* chore(deps): update dependency constructs to v10.1.205 (#206)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ts-jest to v28.0.8 (#208)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ts-node to v10.9.1 (#234)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency constructs to v10.1.206 (#235)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency esbuild to ^0.16.0 (#233)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency eslint-import-resolver-typescript to v3 (#214)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update commitlint monorepo to v17.3.0 (#213)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update jest monorepo to v29 (#239)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat: adding forum comment features (#240)

* feat: initiating forum comments function

* feat: added api gateway schemas for forum comment GET POST and PATCH

* feat: added Forum Comment Api Service

* feat: added GET POST PATCH DELETE lambda functions for forum comments

* feat: finishing fourm comment lambda functions Now capable of conducting simple curd operations

* fix: fix forum comment patch

* fix: re-configuring options resource for forum threads

* fix: renaming api resource

* fix: issue with post forum thread fixing issue (#242)

* fix: mistaken sortkey type

* fix: trying to solve a problem

* fix: changing db (#243)

* fix: solving database issue

* fix: still fixing issues

* fix: reverting error (#244)

* fix: fixing big time reverting whole thread feature

* fix: trying my best to fix

* fix: continuing fix

* fix: continuing

* fix: deleting lambda (#245)

* feat: reverting

* feat: idontknowwhatshappeningnow

* feat: fixing mistakes

* feat: retrieving db and api

* chore(deps): update dependency constructs to v10.1.210 (#241)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: fixing cross stack referencing (#247)

* fix: fixing cross stack referencing

* fix: fixing export value

* chore(deps): update dependency husky to v8.0.3 (#246)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: updating dependencies and syllabus structure (#249)

* fix: configuring-rest-api (#219)

* chore(deps): update dependency eslint to v8.9.0 (#141)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update amannn/action-semantic-pull-request action to v4.2.0 (#140)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.70 (#138)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.71 (#145)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update pnpm/action-setup action to v2.2.0 (#142)

Co-authored-by: Renovate Bot <[email protected]>

* feat: lambda for put-timetable (#144)

* feat: lambda for put-timetable

* deleted newline for put-timetable.

* changed file name for consistency

* chore(deps): update actions/setup-node action to v3 (#148)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update pnpm/action-setup action to v2.2.1 (#147)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.72 (#146)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.12.1 (#143)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.14.0 (#133)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.74 (#150)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency eslint to v8.10.0 (#149)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency typescript to v4.6.2 (#153)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.15.0 (#154)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.75 (#152)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency ts-node to v10.6.0 (#155)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update actions/checkout action to v3 (#156)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.13.0 (#151)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.76 (#157)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.77 (#158)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.79 (#159)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.14.0 (#162)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency ts-node to v10.7.0 (#161)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.81 (#160)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.82 (#163)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.83 (#164)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.16.0 (#168)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update endbug/add-and-commit action to v9 (#167)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency @commitlint/cli to v16.2.3 (#170)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.15.0 (#169)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.90 (#165)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update peter-evans/find-comment action to v2 (#175)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update peter-evans/create-or-update-comment action to v2 (#174)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.17.0 (#171)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.92 (#172)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.16.0 (#173)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency eslint-import-resolver-typescript to v2.7.0 (#176)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.19.0 (#183)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.17.0 (#182)

Co-authored-by: Renovate Bot <[email protected]>

* feat: api for put-timetable lambda. (#179)

* feat: api for put-timetable lambda.

* feat: fixed syntax errors

* feat: fixed syntax error (2)

* chore(deps): update dependencies

* chore: add lint-staged

* chore(deps): update codecov/codecov-action action to v3 (#186)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update amannn/action-semantic-pull-request action to v4.3.0 (#189)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.22.0

* chore(deps): update github/codeql-action action to v2 (#192)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update amannn/action-semantic-pull-request action to v4.4.0 (#190)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependencies

* chore(deps): update amannn/action-semantic-pull-request action to v4.5.0

* chore(deps): update dependency husky to v8

* chore(deps): update dependency @commitlint/cli to v16.3.0

* chore(deps): update dependency standard-version to v9.5.0

* chore(deps): update aws-cdk monorepo to v2.27.0

* chore(deps): update dependency ts-jest to v28.0.4

* chore(deps): update dependency eslint to v8.17.0

* chore(deps): update dependency ts-node to v10.8.1

* chore(deps): update typescript-eslint monorepo to v5.27.1

* chore(deps): update jest monorepo

* chore(deps): update dependency constructs to v10.1.32

* chore(deps): update dependencies

* chore(deps): update pnpm/action-setup action to v2.2.2

* chore(deps): update dependency typescript to v4.7.3

* chore(deps): update dependencies

* f:added Put method into default Headers for new api function put-timetable (#216)

* feat: updated pnpm-lock file to latest

* feat: uploading updated package file

* feat: updating package-lock file

* fix: modified jest config file

* fix: update jest config

* fix: config rest api

* fix: update jest config

* fix: jest types

* fix: update pnpm lock

* fix: deleted package-lock

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: AustinZhu <[email protected]>

* Revert "fix: configuring-rest-api (#219)" (#220)

This reverts commit 665e252.

* fix: chaning syllabus constants

* fix: fixing actions

* fix: adding pnpm command

* fix: reverting changes to original form

---------

Co-authored-by: Jason Park <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: AustinZhu <[email protected]>

* chore(deps): update dependency constructs to v10.1.279 (#250)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: establishing table (#252)

* fix: minor changes (#253)

* fix: renaming table (#254)

* fix: renaming table

* fix: might be an empty commit

* fix: exporting table arn (#255)

* fix: resolving already existing identifier (#256)

* fix: rereferencing export (#258)

* fix: removed conflicting service

* fix: removing exporting value

* fix: re connecting thread service

* fix: adding lsi to table exporting arn with tablename (#259)

* fix: deleting thread table (#260)

* fix: recreating thread table with proper lsi (#261)

* fix: recreating lambdas for forum threads (#262)

* chore(deps): update typescript-eslint monorepo to v5.55.0 (#207)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @types/node to v18 (#237)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update aws-cdk monorepo (#209)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: api service added (#266)

* chore(deps): update dependency typescript to v4.9.5 (#211)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Jason Park <[email protected]>
Co-authored-by: AustinZhu <[email protected]>
  • Loading branch information
5 people authored Mar 18, 2023
1 parent e337e01 commit 4810a67
Show file tree
Hide file tree
Showing 48 changed files with 4,751 additions and 2,205 deletions.
10 changes: 5 additions & 5 deletions .github/actions/install-deps/action.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: 'Install Dependencies'
description: 'Workflow for installing dependencies'
name: "Install Dependencies"
description: "Workflow for installing dependencies"
runs:
using: "composite"
steps:
- uses: pnpm/action-setup@v2.0.1
- uses: pnpm/action-setup@v2.2.2
with:
version: latest
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'pnpm'
cache: "pnpm"
- name: Setup CDK
shell: bash
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -67,7 +67,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -81,4 +81,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Setup AWS
uses: Fooji/create-aws-profile-action@v2
Expand All @@ -54,7 +54,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ deploy ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
repository: wasedatime/wasedatime.github.io
token: ${{ env.GITHUB_OAUTH_TOKEN }}
Expand All @@ -69,7 +69,7 @@ jobs:
aws apigateway get-export --rest-api-id 'anvonkl0fd' --stage-name 'dev' --export-type 'swagger' --accepts 'application/yaml' ./dev.yml
aws apigateway get-export --rest-api-id 'anvonkl0fd' --stage-name 'prod' --export-type 'swagger' --accepts 'application/yaml' ./prod.yml
- name: Push
uses: EndBug/add-and-commit@v7
uses: EndBug/add-and-commit@v9
with:
author_name: GitHub Actions
author_email: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
permissions:
pull-requests: write
steps:
- uses: amannn/action-semantic-pull-request@v4.1.0
- uses: amannn/action-semantic-pull-request@v4.5.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Lint
run: pnpm run lint
Expand All @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ lint ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Synth
run: cdk synth
Expand All @@ -53,7 +53,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ synth ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Test
run: pnpm test
Expand All @@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ test ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Diff
id: diff
Expand All @@ -74,15 +74,15 @@ jobs:
LOG="${LOG//$'\r'/'%0D'}"
echo "::set-output name=log::$LOG"
- name: Find Comment
uses: peter-evans/find-comment@v1
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: "### Diff Output:"
- name: Comment
if: steps.fc.outputs.comment-id == ''
uses: peter-evans/create-or-update-comment@v1
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
Expand All @@ -93,7 +93,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update Comment
if: steps.fc.outputs.comment-id != ''
uses: peter-evans/create-or-update-comment@v1
uses: peter-evans/create-or-update-comment@v2
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
edit-mode: replace
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Lint
run: pnpm run lint
Expand All @@ -42,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ lint ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Build
run: pnpm run build
Expand All @@ -51,9 +51,9 @@ jobs:
runs-on: ubuntu-latest
needs: [ build ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Test
run: pnpm test -- --coverage
- name: Test Coverage
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,3 @@ node_modules
# CDK asset staging directory
.cdk.staging
cdk.out

# husky
.husky/_/
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ if [ ! -z "$js_diff" ]; then
else
echo "Seems you haven't changed any JavaScript, skip checks. "
fi

npx lint-staged
3 changes: 2 additions & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Config } from '@jest/types';
import { Config } from '@jest/types';

const config: Config.InitialOptions = {
testEnvironment: 'node',
Expand All @@ -7,6 +7,7 @@ const config: Config.InitialOptions = {
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
moduleDirectories: ['<rootDir>/node_modules'],
};

export default config;
2 changes: 1 addition & 1 deletion lib/configs/api-gateway/cors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ export const allowHeaders = [

export const defaultHeaders = {
'Access-Control-Allow-Headers': '\'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token\'',
'Access-Control-Allow-Methods': '\'GET,POST,OPTIONS\'',
'Access-Control-Allow-Methods': '\'GET,POST,PUT,OPTIONS\'',
'Access-Control-Allow-Origin': '\'*\'',
};
Loading

0 comments on commit 4810a67

Please sign in to comment.