-
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 docs/add-HyeonSeokHun
- Loading branch information
Showing
40 changed files
with
13,182 additions
and
6,455 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
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,3 +1 @@ | ||
* @eunsukimme @naru200 | ||
/data/people.json @eunsukimme @naru200 @sudosubin | ||
/public/people/ @eunsukimme @naru200 @sudosubin | ||
/public/people/ @sudosubin |
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,2 @@ | ||
# Set addAssignees to 'author' to set the PR creator as the assignee. | ||
addAssignees: author |
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 @@ | ||
name: CI | ||
|
||
on: | ||
- push | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Test | ||
run: npm run 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import peopleJson from '@/data/people.json'; | ||
|
||
interface Person { | ||
year: string; | ||
name_ko: string; | ||
name_en: string; | ||
photo: string; | ||
short_bio: string; | ||
github_username?: string; | ||
linkedin_username?: string; | ||
homepage_url?: string; | ||
} | ||
|
||
const isValidPersonData = (person: Person): boolean => { | ||
return ( | ||
person.name_en !== undefined || | ||
person.name_ko !== undefined || | ||
person.photo !== undefined || | ||
person.short_bio !== undefined || | ||
person.year !== undefined | ||
); | ||
}; | ||
|
||
describe('validate people.json', () => { | ||
it('필수 데이터가 모두 채워져 있어야 합니다.', () => { | ||
peopleJson.people.forEach(person => { | ||
expect(isValidPersonData(person)); | ||
}); | ||
}); | ||
}); |
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,10 @@ | ||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
module.exports = { | ||
preset: 'ts-jest', | ||
projects: ['<rootDir>/'], | ||
testRegex: '\\.test\\.(ts|js)x?$', | ||
testEnvironment: 'node', | ||
moduleNameMapper: { | ||
'@/data/(.*)$': '<rootDir>/data/$1', | ||
} | ||
}; |
Oops, something went wrong.