Skip to content
Snippets Groups Projects
Forked from TransFem.org / Sharkey
3466 commits behind the upstream repository.
  • かっこかり's avatar
    fix(build): corepackのバグの回避 (#15387) · 9c70a4e6
    かっこかり authored
    
    * fix: disallow corepack from fetching latest manager version instead use specified version in package.json
    
    * Update Changelog
    
    * fix?
    
    * apply COREPACK_DEFAULT_TO_LATEST: 0 to every github workflows
    
    * Revert "apply COREPACK_DEFAULT_TO_LATEST: 0 to every github workflows"
    
    This reverts commit 67f0dc31adaa04f891f74f5c44a3d4d13a302a03.
    
    * apply COREPACK_DEFAULT_TO_LATEST: 0 to every github workflows (re)
    
    * fix
    
    * fix?
    
    * revert: removing corepack enable
    
    * test: set COREPACK_DEFAULT_TO_LATEST for federation tests
    
    ---------
    
    Co-authored-by: default avatarMarie <github@yuugi.dev>
    Co-authored-by: default avataranatawa12 <anatawa12@icloud.com>
    Unverified
    9c70a4e6
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
compose.yml 3.75 KiB
include:
  - ./compose.a.yml
  - ./compose.b.yml

services:
  setup:
    extends:
      file: ./compose.tpl.yml
      service: misskey
    command: >
      bash -c "
        corepack enable && corepack prepare
        pnpm -F backend i
        pnpm -F misskey-js i
        pnpm -F misskey-reversi i
      "

  tester:
    image: node:20
    depends_on:
      a.test:
        condition: service_healthy
      b.test:
        condition: service_healthy
    environment:
      - NODE_ENV=development
      - NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/rootCA.crt
      - COREPACK_DEFAULT_TO_LATEST=0
    volumes:
      - type: bind
        source: ../package.json
        target: /misskey/packages/backend/package.json
        read_only: true
      - type: bind
        source: ../test/resources
        target: /misskey/packages/backend/test/resources
        read_only: true
      - type: bind
        source: ./test
        target: /misskey/packages/backend/test-federation/test
        read_only: true
      - type: bind
        source: ../jest.config.cjs
        target: /misskey/packages/backend/jest.config.cjs
        read_only: true
      - type: bind
        source: ../jest.config.fed.cjs
        target: /misskey/packages/backend/jest.config.fed.cjs
        read_only: true
      - type: bind
        source: ../../misskey-js/built
        target: /misskey/packages/misskey-js/built
        read_only: true
      - type: bind
        source: ../../misskey-js/package.json
        target: /misskey/packages/misskey-js/package.json
        read_only: true
      - type: bind
        source: ../../../package.json
        target: /misskey/package.json
        read_only: true
      - type: bind
        source: ../../../pnpm-lock.yaml
        target: /misskey/pnpm-lock.yaml
        read_only: true
      - type: bind
        source: ../../../pnpm-workspace.yaml
        target: /misskey/pnpm-workspace.yaml
        read_only: true
      - type: bind