forked from misskey-dev/misskey
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from taiyme/merge-upstream
- Loading branch information
Showing
140 changed files
with
6,249 additions
and
3,400 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
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,45 @@ | ||
name: On Release Created (Publish misskey-js) | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
publish-misskey-js: | ||
name: Publish misskey-js | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.10.0] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Publish package | ||
run: | | ||
corepack enable | ||
pnpm i --frozen-lockfile | ||
pnpm build | ||
pnpm --filter misskey-js publish --access public --no-git-checks --provenance | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} |
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 |
---|---|---|
|
@@ -54,3 +54,17 @@ jobs: | |
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./packages/misskey-js/coverage/coverage-final.json | ||
|
||
check-version: | ||
# ルートの package.json と packages/misskey-js/package.json のバージョンが一致しているかを確認する | ||
name: Check version | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Check version | ||
run: | | ||
if [ "$(jq -r '.version' package.json)" != "$(jq -r '.version' packages/misskey-js/package.json)" ]; then | ||
echo "Version mismatch!" | ||
exit 1 | ||
fi |
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
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 @@ | ||
describe('Router transition', () => { | ||
describe('Redirect', () => { | ||
// サーバの初期化。ルートのテストに関しては各describeごとに1度だけ実行で十分だと思う(使いまわした方が早い) | ||
before(() => { | ||
cy.resetState(); | ||
|
||
// インスタンス初期セットアップ | ||
cy.registerUser('admin', 'pass', true); | ||
|
||
// ユーザー作成 | ||
cy.registerUser('alice', 'alice1234'); | ||
|
||
cy.login('alice', 'alice1234'); | ||
|
||
// アカウント初期設定ウィザード | ||
// 表示に時間がかかるのでデフォルト秒数だとタイムアウトする | ||
cy.get('[data-cy-user-setup] [data-cy-modal-window-close]', { timeout: 12000 }).click(); | ||
cy.wait(500); | ||
cy.get('[data-cy-modal-dialog-ok]').click(); | ||
}); | ||
|
||
it('redirect to user profile', () => { | ||
// テストのためだけに用意されたリダイレクト用ルートに飛ぶ | ||
cy.visit('/redirect-test'); | ||
|
||
// プロフィールページのURLであることを確認する | ||
cy.url().should('include', '/@alice') | ||
}); | ||
}); | ||
}); |
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.