mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-23 23:59:22 +01:00
bdbc448d13
* Yarn berry
* Add `.yarn` to dockerignore
* Mention in CHANGELOG
* Update Dockerfile
* Proper upgrade to yarn
* use `"packageManager"`
* Replace `install-packages.js` with workspaces
* Replace `install-packages.js` with workspaces
* Typo
* `corepack enable` for linting
* Remove `packages/*/yarn.lock`
* Improve lint workflow
* Update .github/workflows/lint.yml
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
* Update .github/workflows/lint.yml
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
* Add `eslint`
* Regenerate yarn.lock
* 🙏
* Update lint.yml
🤔
* Fix workflow!
* yarn lint my beloved
* corepack enable for mocha/e2e
* Update CHANGELOG.md
* fix the code that depends on node_modules
* tbh
* tbh
* More yarn workspaces stuff
* 🍀
* Change `browser-image-resizer`
* :finnadie:
* :goberserk:
* :godmode:
* Remove yarnrc for workspaces
* 🙏
* Add proper packages for eslint
* Skip extra install
* New steps for test.yml too
* uhh
* Update .dockerignore
* Update lint.yml
* Update test.yml
* Make client/backend lints seperate workflows
* package.json names
* pnpm = dont change paths
* Fix changelog
* :bowtie:
* I don't know why github workflows hates me...
* test
* ?????
* continue-on-error: true
* Fix yarn.lock
Co-authored-by: ishowta <ishowta@gmail.com>
* add @rollup/pluginutils
* add packageExtensions for chartjs_date-fns
Co-authored-by: acid-chicken <root@acid-chicken.com>
* npm run => yarn
* wip
* yarn node => node
依存関係の記載不足の解消がかなり多いため、yarn nodeは使わない
* fix
* fix http-signature
* fix
* fix
* add packageExtensions
* ✌️
* remove `yarn set version berry`
* yarn install --immutable
Co-authored-by: ishowta <ishowta@gmail.com>
* https://github.com/misskey-dev/misskey/pull/8764#discussion_r885749892
* enable actions/setup-node's global cache
* Update .gitignore
Co-authored-by: iwata <ishowta@gmail.com>
* revival gulp build
66ab7591bf (r885899944)
* fix lockfile
* Update packages/backend/package.json
Co-authored-by: iwata <ishowta@gmail.com>
* remove packagemanager
* `yarn run gulp` in `build` instead of just `gulp`
* Update CHANGELOG.md
* update lockfile
* Add .yarn/cache to gitignore for packages
* ?
* move resolutions
* ✌️
* update lockfie
* update-lockfile
* update yarn.lock
* fix build
* fix
* fix
* fix: add @tensorflow/tfjs
* ダメ
* modify lockfile
* use yarnrc
* update yarnlock
* add jest-mock
* update-lockfile
* update lockfile
* update lockfile
* move jest-mock, update lockfile
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
Co-authored-by: ishowta <ishowta@gmail.com>
122 lines
3.1 KiB
YAML
122 lines
3.1 KiB
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
pull_request:
|
|
|
|
jobs:
|
|
jest:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x]
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:13
|
|
ports:
|
|
- 54312:5432
|
|
env:
|
|
POSTGRES_DB: test-misskey
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
YARN_CHECKSUM_BEHAVIOR: update
|
|
redis:
|
|
image: redis:6
|
|
ports:
|
|
- 56312:6379
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3.2.0
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'yarn'
|
|
- run: corepack enable
|
|
- run: yarn install --immutable
|
|
- name: Check yarn.lock
|
|
run: git diff --exit-code yarn.lock
|
|
- name: Copy Configure
|
|
run: cp .github/misskey/test.yml .config
|
|
- name: Build
|
|
run: yarn build
|
|
- name: Test
|
|
run: yarn jest-and-coverage
|
|
- name: Upload Coverage
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
files: ./packages/backend/coverage/coverage-final.json
|
|
|
|
e2e:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
node-version: [18.x]
|
|
browser: [chrome]
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:13
|
|
ports:
|
|
- 54312:5432
|
|
env:
|
|
POSTGRES_DB: test-misskey
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
redis:
|
|
image: redis:6
|
|
ports:
|
|
- 56312:6379
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
# https://github.com/cypress-io/cypress-docker-images/issues/150
|
|
#- name: Install mplayer for FireFox
|
|
# run: sudo apt install mplayer -y
|
|
# if: ${{ matrix.browser == 'firefox' }}
|
|
#- uses: browser-actions/setup-firefox@latest
|
|
# if: ${{ matrix.browser == 'firefox' }}
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3.2.0
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'yarn'
|
|
- run: corepack enable
|
|
- run: yarn install --immutable
|
|
env:
|
|
YARN_CHECKSUM_BEHAVIOR: update
|
|
- name: Copy Configure
|
|
run: cp .github/misskey/test.yml .config
|
|
- name: Build
|
|
run: yarn build
|
|
# https://github.com/cypress-io/cypress/issues/4351#issuecomment-559489091
|
|
- name: ALSA Env
|
|
run: echo -e 'pcm.!default {\n type hw\n card 0\n}\n\nctl.!default {\n type hw\n card 0\n}' > ~/.asoundrc
|
|
- name: Cypress run
|
|
uses: cypress-io/github-action@v4
|
|
with:
|
|
install: false
|
|
start: yarn start:test
|
|
wait-on: 'http://localhost:61812'
|
|
headless: false
|
|
browser: ${{ matrix.browser }}
|
|
- uses: actions/upload-artifact@v2
|
|
if: failure()
|
|
with:
|
|
name: ${{ matrix.browser }}-cypress-screenshots
|
|
path: cypress/screenshots
|
|
- uses: actions/upload-artifact@v2
|
|
if: always()
|
|
with:
|
|
name: ${{ matrix.browser }}-cypress-videos
|
|
path: cypress/videos
|