mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
* deps: update djs to v14 * refactor: use discord.js v14 * fix: presence not showing properly * fix: revert Ids * Update pages/api/v2/bots/[id]/index.ts Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * style: apply code style * feat: customizable intents * feat: change node version * feat: change node version * fix: misused operator * deps: fix typescript version to 4.6.4 * fix: fix bot url length (#504) * refactor: add more advertisements (#508) * feat: add open review deny log and max denies restriction (#510) * feat: add open review log channel and embed * chore: do not include submit page * chore: mention instead of date * feat: add max denies error * typo: 더 이상 Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * feat: add exceptions to deny count * fix: invalid embed used Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * fix: invalid guild Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * fix: invalid position Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * fix: proper reason check position Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * feat: sepcific error message * refactor: change reason embed format * fix: knex andWhereNot method to whereNotIn method Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * refactor: detact adblock (#509) * refactor: detact adblock * perf: implement mobile detection * deps: update djs to v14 * refactor: use discord.js v14 * fix: presence not showing properly * fix: revert Ids * Update pages/api/v2/bots/[id]/index.ts Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> * style: apply code style * feat: customizable intents * feat: change node version * feat: change node version * fix: misused operator * deps: fix typescript version to 4.6.4 * refactor: use discord.js v14 * deps: update discord.js to 14.2.0 * style: split options * style: prettify * deps: update erlpack Co-authored-by: Junseo Park <wonderlandpark@outlook.kr> Co-authored-by: Byungchul Kim <64084503+chul0721@users.noreply.github.com> Co-authored-by: Eunwoo Choi <61371424+eunwoo1104@users.noreply.github.com>
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
- 'stable'
|
|
pull_request:
|
|
branches:
|
|
- '*'
|
|
jobs:
|
|
eslint:
|
|
name: ESLint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install node v16
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16
|
|
- name: yarn install
|
|
run: yarn install
|
|
- name: run eslint
|
|
run: yarn lint
|
|
env:
|
|
CI: true
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install node v16
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16
|
|
- name: yarn install
|
|
run: yarn install
|
|
- name: Run Jest
|
|
run: yarn test
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install node v16
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16
|
|
- name: yarn install
|
|
run: yarn install
|
|
- name: Build
|
|
run: |
|
|
printf 'defaults.url=https://sentry.io/\ndefaults.org=koreanbots\ndefaults.project=client' > sentry.properties
|
|
yarn build
|
|
env:
|
|
CI: true
|
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
|
NEXT_PUBLIC_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
|
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|