-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 3594-add-cohort-groups
- Loading branch information
Showing
188 changed files
with
14,764 additions
and
4,624 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ jobs: | |
id: cache-npm | ||
with: | ||
path: | | ||
apiv2/node_modules | ||
node_modules | ||
api/node_modules | ||
app/node_modules | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: API V2 - Run Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
inputs: | ||
branch_name: | ||
required: true | ||
type: string | ||
pull_request: | ||
branches: | ||
- main | ||
merge_group: | ||
types: | ||
- checks_requested | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.branch_name }} | ||
|
||
- name: Node 18.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
|
||
- uses: actions/cache@v4 | ||
id: cache-npm | ||
with: | ||
path: | | ||
apiv2/node_modules | ||
node_modules | ||
api/node_modules | ||
app/node_modules | ||
admin/node_modules | ||
packages/ds/node_modules | ||
packages/lib/node_modules | ||
key: ${{ runner.os }}-nodemodules-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-nodemodules- | ||
- name: Install packages | ||
if: steps.cache-npm.outputs.cache-hit != 'true' | ||
run: npm ci | ||
|
||
- name: Build lib | ||
working-directory: packages/lib | ||
run: npm run build | ||
|
||
- name: Run tests | ||
working-directory: apiv2 | ||
run: npm test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ jobs: | |
id: cache-npm | ||
with: | ||
path: | | ||
apiv2/node_modules | ||
node_modules | ||
api/node_modules | ||
app/node_modules | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ jobs: | |
id: cache-npm | ||
with: | ||
path: | | ||
apiv2/node_modules | ||
node_modules | ||
api/node_modules | ||
app/node_modules | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ jobs: | |
id: cache-npm | ||
with: | ||
path: | | ||
apiv2/node_modules | ||
node_modules | ||
api/node_modules | ||
app/node_modules | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
|
||
.vscode/* | ||
!.vscode/tasks.json | ||
!.vscode/settings.json | ||
.env* | ||
.cache_ggshield | ||
Zammadwebhook.json | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"jest.shell": "/bin/zsh", | ||
"jest.virtualFolders": [ | ||
{ | ||
"name": "snu-api-v2", | ||
"rootPath": "apiv2", | ||
"jestCommandLine": "source ~/.zshrc && nvm use && npm run test --", | ||
"runMode": "on-demand" | ||
}, | ||
{ | ||
"name": "snu-api-v1", | ||
"rootPath": "api", | ||
"jestCommandLine": "source ~/.zshrc && nvm use && npm run test --", | ||
"runMode": "on-demand" | ||
}, | ||
{ | ||
"name": "snu-lib", | ||
"rootPath": "packages/lib", | ||
"jestCommandLine": "source ~/.zshrc && nvm use && npm run test --", | ||
"runMode": "watch" | ||
} | ||
] | ||
} |
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
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
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
Oops, something went wrong.