Skip to content

Commit

Permalink
Merge remote-tracking branch 'sakura-tel/sakura-tel/develop' into ats…
Browse files Browse the repository at this point in the history
…uchan/dev
  • Loading branch information
atsu1125 committed Jan 3, 2022
2 parents 88bc2fd + 92f6bbc commit d8749fd
Show file tree
Hide file tree
Showing 10 changed files with 486 additions and 406 deletions.
34 changes: 29 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,31 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 20
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
open-pull-requests-limit: 99
labels:
- "📦 Dependencies"
- "🧶 JavaScript"

- package-ecosystem: "docker" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
labels:
- "📦 Dependencies"
- "⚓ Docker"

- package-ecosystem: "gitsubmodule" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
labels:
- "📦 Dependencies"
- "⛓ Submodules"
23 changes: 23 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Dependabot auto-merge
on: pull_request_target

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v1.1.1
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' }}
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
65 changes: 65 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: E2E Test

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
python-version: [3.9]

services:
postgres:
image: postgres:10-alpine
ports:
- 5432:5432
env:
POSTGRES_DB: test-misskey
POSTGRES_HOST_AUTH_METHOD: trust

redis:
image: redis:alpine
ports:
- 6379:6379

steps:
- uses: actions/checkout@v2
with:
submodules: true

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'

- run: yarn install --prefer-offline
- run: yarn build
- run: cp e2e/e2e.yml .config/default.yml
- run: yarn migrateandstart &

- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Run pip install
run: pip install -r requirements.txt
working-directory: ./e2e

- name: Setup playwright
run: python -m playwright install
working-directory: ./e2e

- name: Run E2E Test
run: pytest run.py
working-directory: ./e2e

- name: Upload E2E ScreenShots
uses: actions/upload-artifact@v2
with:
name: ScreenShots-${{ matrix.node-version }}
path: e2e/ScreenShots
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "misskey-assets"]
path = misskey-assets
url = https://github.com/misskey-dev/assets.git
url = https://github.com/misskey-dev/assets.git
[submodule "e2e"]
path = e2e
url = https://github.com/sakura-tel/milkey-e2e
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.13.0-alpine3.13 AS base
FROM node:17.3.0-alpine3.13 AS base

ENV NODE_ENV=production

Expand Down
1 change: 1 addition & 0 deletions e2e
Submodule e2e added at 588509
2 changes: 1 addition & 1 deletion misskey-assets
80 changes: 40 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"lodash": "^4.17.21"
},
"dependencies": {
"@elastic/elasticsearch": "7.12.0",
"@elastic/elasticsearch": "7.16.0",
"@fortawesome/fontawesome-svg-core": "1.2.36",
"@fortawesome/free-brands-svg-icons": "5.15.4",
"@fortawesome/free-regular-svg-icons": "5.15.4",
Expand All @@ -42,60 +42,60 @@
"@types/cbor": "6.0.0",
"@types/dateformat": "3.0.1",
"@types/double-ended-queue": "2.1.1",
"@types/escape-regexp": "0.0.0",
"@types/fluent-ffmpeg": "2.1.18",
"@types/escape-regexp": "0.0.1",
"@types/fluent-ffmpeg": "2.1.20",
"@types/gulp": "4.0.9",
"@types/gulp-mocha": "0.0.33",
"@types/gulp-rename": "2.0.1",
"@types/is-url": "1.2.30",
"@types/js-yaml": "4.0.4",
"@types/jsdom": "16.2.13",
"@types/js-yaml": "4.0.5",
"@types/jsdom": "16.2.14",
"@types/jsonld": "1.5.6",
"@types/katex": "0.11.1",
"@types/koa": "2.13.4",
"@types/koa-bodyparser": "4.3.3",
"@types/koa-bodyparser": "4.3.5",
"@types/koa-cors": "0.0.2",
"@types/koa-favicon": "2.0.21",
"@types/koa-logger": "3.1.2",
"@types/koa-mount": "4.0.1",
"@types/koa-send": "4.1.3",
"@types/koa-views": "2.0.4",
"@types/koa__cors": "3.0.3",
"@types/koa__cors": "3.1.1",
"@types/koa__multer": "2.0.4",
"@types/koa__router": "8.0.8",
"@types/koa__router": "8.0.11",
"@types/lolex": "5.1.2",
"@types/mocha": "9.0.0",
"@types/node": "16.11.6",
"@types/node-fetch": "2.5.12",
"@types/node-fetch": "3.0.3",
"@types/nodemailer": "6.4.4",
"@types/nprogress": "0.2.0",
"@types/oauth": "0.9.1",
"@types/parse5": "6.0.2",
"@types/parse5": "6.0.3",
"@types/parsimmon": "1.10.6",
"@types/portscanner": "2.1.1",
"@types/pug": "2.0.5",
"@types/qrcode": "1.4.1",
"@types/pug": "2.0.6",
"@types/qrcode": "1.4.2",
"@types/random-seed": "0.3.3",
"@types/ratelimiter": "3.4.2",
"@types/ratelimiter": "3.4.3",
"@types/redis": "2.8.32",
"@types/rename": "1.0.4",
"@types/request-stats": "3.0.0",
"@types/rimraf": "3.0.2",
"@types/seedrandom": "3.0.1",
"@types/sharp": "0.28.5",
"@types/showdown": "1.9.4",
"@types/speakeasy": "2.0.6",
"@types/speakeasy": "2.0.7",
"@types/tinycolor2": "1.4.3",
"@types/tmp": "0.2.2",
"@types/uuid": "8.3.1",
"@types/tmp": "0.2.3",
"@types/uuid": "8.3.3",
"@types/web-push": "3.3.2",
"@types/webpack": "5.28.0",
"@types/webpack-stream": "3.2.12",
"@types/websocket": "1.0.4",
"@types/ws": "8.2.0",
"@types/ws": "8.2.2",
"abort-controller": "3.0.0",
"animejs": "3.2.1",
"apexcharts": "3.28.1",
"apexcharts": "3.32.1",
"autobind-decorator": "2.4.0",
"autosize": "4.0.4",
"autwh": "0.1.0",
Expand All @@ -106,15 +106,15 @@
"bull": "3.29.3",
"cacheable-lookup": "6.0.4",
"cafy": "15.2.1",
"cbor": "8.0.0",
"cbor": "8.1.0",
"chalk": "4.1.2",
"cli-highlight": "2.1.11",
"commander": "4.1.0",
"content-disposition": "0.5.3",
"content-disposition": "0.5.4",
"crc-32": "1.2.0",
"cross-env": "7.0.3",
"css-loader": "6.5.0",
"cssnano": "5.0.13",
"css-loader": "6.5.1",
"cssnano": "5.0.14",
"dateformat": "4.5.1",
"diskusage": "1.1.3",
"double-ended-queue": "2.1.0-0",
Expand All @@ -129,7 +129,7 @@
"gulp-rename": "2.0.0",
"gulp-replace": "1.1.3",
"gulp-sourcemaps": "3.0.0",
"gulp-stylus": "2.7.0",
"gulp-stylus": "2.7.1",
"gulp-terser": "2.1.0",
"gulp-tslint": "8.1.4",
"gulp-typescript": "5.0.1",
Expand All @@ -140,13 +140,13 @@
"http-signature": "1.3.6",
"insert-text-at-cursor": "0.3.0",
"ip-cidr": "3.0.4",
"is-svg": "4.3.1",
"is-svg": "4.3.2",
"js-yaml": "4.1.0",
"jsdom": "18.0.0",
"json5": "2.2.0",
"json5-loader": "4.0.1",
"jsonld": "5.2.0",
"jsrsasign": "10.4.1",
"jsrsasign": "10.5.1",
"katex": "0.13.13",
"koa": "2.13.4",
"koa-bodyparser": "4.3.0",
Expand All @@ -158,25 +158,25 @@
"koa-slow": "2.1.0",
"koa-views": "7.0.1",
"langmap": "0.0.16",
"loader-utils": "2.0.0",
"loader-utils": "3.2.0",
"mocha": "9.1.3",
"moji": "0.5.1",
"ms": "2.1.3",
"multer": "1.4.3",
"multer": "1.4.4",
"nested-property": "4.0.0",
"node-fetch": "2.6.1",
"nodemailer": "6.7.0",
"nodemailer": "6.7.2",
"nprogress": "0.2.0",
"object-assign-deep": "0.4.0",
"os-utils": "0.0.14",
"parse5": "6.0.1",
"parsimmon": "1.18.0",
"parsimmon": "1.18.1",
"pg": "8.7.1",
"portscanner": "2.2.0",
"postcss": "8.3.11",
"postcss-loader": "6.2.0",
"private-ip": "2.3.1",
"probe-image-size": "7.2.1",
"postcss-loader": "6.2.1",
"private-ip": "2.3.3",
"probe-image-size": "7.2.2",
"progress-bar-webpack-plugin": "2.1.0",
"promise-limit": "2.7.0",
"promise-sequential": "1.1.1",
Expand All @@ -198,16 +198,16 @@
"rndstr": "1.0.0",
"s-age": "1.1.2",
"seedrandom": "3.0.5",
"sharp": "0.28.3",
"sharp": "0.29.3",
"showdown": "1.9.1",
"showdown-highlightjs-extension": "0.1.2",
"speakeasy": "2.0.0",
"stringz": "2.1.0",
"stylus": "0.55.0",
"stylus": "0.56.0",
"stylus-loader": "6.2.0",
"summaly": "2.5.0",
"syslog-pro": "1.0.0",
"systeminformation": "5.9.7",
"systeminformation": "5.9.17",
"syuilo-password-strength": "0.0.1",
"terser-webpack-plugin": "4.2.3",
"textarea-caret": "3.1.0",
Expand All @@ -219,7 +219,7 @@
"tslint": "5.20.1",
"tslint-sonarts": "1.9.0",
"twemoji-parser": "13.1.0",
"typeorm": "0.2.38",
"typeorm": "0.2.41",
"typescript": "3.9.10",
"ulid": "2.3.0",
"uuid": "8.3.2",
Expand All @@ -229,11 +229,11 @@
"vue-color": "2.8.1",
"vue-content-loading": "1.6.0",
"vue-cropperjs": "4.2.0",
"vue-i18n": "8.26.5",
"vue-i18n": "8.26.8",
"vue-js-modal": "1.3.35",
"vue-loader": "15.9.8",
"vue-marquee-text-component": "1.2.0",
"vue-router": "3.5.2",
"vue-router": "3.5.3",
"vue-sequential-entrance": "1.1.3",
"vue-style-loader": "4.1.3",
"vue-svg-inline-loader": "2.1.2",
Expand All @@ -242,14 +242,14 @@
"vuewordcloud": "18.7.12",
"vuex": "3.6.2",
"vuex-persistedstate": "3.2.0",
"web-push": "3.4.4",
"web-push": "3.4.5",
"webpack": "5.60.0",
"webpack-cli": "4.9.1",
"websocket": "1.0.34",
"ws": "8.2.3",
"xev": "2.0.1"
},
"devDependencies": {
"@redocly/openapi-core": "1.0.0-beta.65"
"@redocly/openapi-core": "1.0.0-beta.76"
}
}
Loading

0 comments on commit d8749fd

Please sign in to comment.