parent
53f0cefd04
commit
37615772e0
12 changed files with 9 additions and 256 deletions
|
@ -3,9 +3,7 @@ name: Check Misskey JS version
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- beta
|
- main
|
||||||
- io
|
|
||||||
- host
|
|
||||||
paths:
|
paths:
|
||||||
- packages/misskey-js/package.json
|
- packages/misskey-js/package.json
|
||||||
- package.json
|
- package.json
|
||||||
|
|
52
.github/workflows/docker-beta.yml
vendored
52
.github/workflows/docker-beta.yml
vendored
|
@ -1,52 +0,0 @@
|
||||||
name: Publish Docker image (beta)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- beta
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
push_to_registry:
|
|
||||||
name: Push Docker image to GitHub Container Registry
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
if: github.repository == 'MisskeyIO/misskey'
|
|
||||||
steps:
|
|
||||||
- name: Check out the repo
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
submodules: true
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
id: buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
platforms: linux/amd64
|
|
||||||
- name: Docker meta
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@v5
|
|
||||||
with:
|
|
||||||
images: ghcr.io/misskeyio/misskey
|
|
||||||
- name: Log in to GitHub Container Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Prepare image tags
|
|
||||||
run: |
|
|
||||||
echo "FORMATTED_BRANCH_NAME=$(echo ${{ github.ref_name }} | sed -e 's/\//-/g' )" >> $GITHUB_ENV
|
|
||||||
- name: Build and Push to GitHub Container Registry
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
|
||||||
context: .
|
|
||||||
push: true
|
|
||||||
platforms: ${{ steps.buildx.outputs.platforms }}
|
|
||||||
provenance: false
|
|
||||||
labels: ${{ env.FORMATTED_BRANCH_NAME }}
|
|
||||||
cache-from: type=registry,ref=ghcr.io/misskeyio/misskey:io-buildcache
|
|
||||||
cache-to: type=registry,ref=ghcr.io/misskeyio/misskey:io-buildcache,mode=max
|
|
||||||
tags: |
|
|
||||||
ghcr.io/misskeyio/misskey:beta
|
|
||||||
ghcr.io/misskeyio/misskey:${{ env.FORMATTED_BRANCH_NAME }}
|
|
54
.github/workflows/docker-host.yml
vendored
54
.github/workflows/docker-host.yml
vendored
|
@ -1,54 +0,0 @@
|
||||||
name: Publish Docker image (host)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- host
|
|
||||||
tags:
|
|
||||||
- '**-host.*'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
push_to_registry:
|
|
||||||
name: Push Docker image to GitHub Container Registry
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
if: github.repository == 'MisskeyIO/misskey'
|
|
||||||
steps:
|
|
||||||
- name: Check out the repo
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
submodules: true
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
id: buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
platforms: linux/amd64
|
|
||||||
- name: Docker meta
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@v5
|
|
||||||
with:
|
|
||||||
images: ghcr.io/misskeyio/misskey
|
|
||||||
- name: Log in to GitHub Container Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Prepare image tags
|
|
||||||
run: |
|
|
||||||
echo "FORMATTED_BRANCH_NAME=$(echo ${{ github.ref_name }} | sed -e 's/\//-/g' )" >> $GITHUB_ENV
|
|
||||||
- name: Build and Push to GitHub Container Registry
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
|
||||||
context: .
|
|
||||||
push: true
|
|
||||||
platforms: ${{ steps.buildx.outputs.platforms }}
|
|
||||||
provenance: false
|
|
||||||
labels: ${{ env.FORMATTED_BRANCH_NAME }}
|
|
||||||
cache-from: type=registry,ref=ghcr.io/misskeyio/misskey:host-buildcache
|
|
||||||
cache-to: type=registry,ref=ghcr.io/misskeyio/misskey:host-buildcache,mode=max
|
|
||||||
tags: |
|
|
||||||
ghcr.io/misskeyio/misskey:host
|
|
||||||
ghcr.io/misskeyio/misskey:${{ env.FORMATTED_BRANCH_NAME }}
|
|
54
.github/workflows/docker-io.yml
vendored
54
.github/workflows/docker-io.yml
vendored
|
@ -1,54 +0,0 @@
|
||||||
name: Publish Docker image (io)
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- io
|
|
||||||
tags:
|
|
||||||
- '**-io.*'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
push_to_registry:
|
|
||||||
name: Push Docker image to GitHub Container Registry
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
if: github.repository == 'MisskeyIO/misskey'
|
|
||||||
steps:
|
|
||||||
- name: Check out the repo
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
submodules: true
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
id: buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
with:
|
|
||||||
platforms: linux/amd64
|
|
||||||
- name: Docker meta
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@v5
|
|
||||||
with:
|
|
||||||
images: ghcr.io/misskeyio/misskey
|
|
||||||
- name: Log in to GitHub Container Registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: Prepare image tags
|
|
||||||
run: |
|
|
||||||
echo "FORMATTED_BRANCH_NAME=$(echo ${{ github.ref_name }} | sed -e 's/\//-/g' )" >> $GITHUB_ENV
|
|
||||||
- name: Build and Push to GitHub Container Registry
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
|
||||||
context: .
|
|
||||||
push: true
|
|
||||||
platforms: ${{ steps.buildx.outputs.platforms }}
|
|
||||||
provenance: false
|
|
||||||
labels: ${{ env.FORMATTED_BRANCH_NAME }}
|
|
||||||
cache-from: type=registry,ref=ghcr.io/misskeyio/misskey:io-buildcache
|
|
||||||
cache-to: type=registry,ref=ghcr.io/misskeyio/misskey:io-buildcache,mode=max
|
|
||||||
tags: |
|
|
||||||
ghcr.io/misskeyio/misskey:latest
|
|
||||||
ghcr.io/misskeyio/misskey:${{ env.FORMATTED_BRANCH_NAME }}
|
|
38
.github/workflows/dockle.yml
vendored
38
.github/workflows/dockle.yml
vendored
|
@ -1,38 +0,0 @@
|
||||||
name: Dockle
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- beta
|
|
||||||
- io
|
|
||||||
- host
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
dockle:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
submodules: true
|
|
||||||
- name: Build an image from Dockerfile
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
push: false
|
|
||||||
provenance: false
|
|
||||||
cache-from: type=registry,ref=ghcr.io/misskeyio/misskey:io-buildcache
|
|
||||||
tags: |
|
|
||||||
misskey:scan
|
|
||||||
- name: Run dockle
|
|
||||||
uses: docker://goodwithtech/dockle:v0.4.14
|
|
||||||
env:
|
|
||||||
DOCKLE_OUTPUT_FORMAT: list
|
|
||||||
DOCKLE_EXIT_CODE: 1
|
|
||||||
DOCKLE_EXIT_LEVEL: WARN
|
|
||||||
DOCKLE_IGNORES: CIS-DI-0005,CIS-DI-0010
|
|
||||||
DOCKLE_DEBUG: true
|
|
||||||
with:
|
|
||||||
args: 'misskey:scan'
|
|
16
.github/workflows/labeler.yml
vendored
16
.github/workflows/labeler.yml
vendored
|
@ -1,16 +0,0 @@
|
||||||
name: "Pull Request Labeler"
|
|
||||||
on:
|
|
||||||
pull_request_target:
|
|
||||||
branches-ignore:
|
|
||||||
- 'l10n_develop'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
triage:
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pull-requests: write
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/labeler@v5
|
|
||||||
with:
|
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
|
@ -3,9 +3,7 @@ name: Lint
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- beta
|
- main
|
||||||
- io
|
|
||||||
- host
|
|
||||||
paths:
|
paths:
|
||||||
- packages/backend/**
|
- packages/backend/**
|
||||||
- packages/frontend/**
|
- packages/frontend/**
|
||||||
|
|
18
.github/workflows/test-backend.yml
vendored
18
.github/workflows/test-backend.yml
vendored
|
@ -3,9 +3,7 @@ name: Test (backend)
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- beta
|
- main
|
||||||
- io
|
|
||||||
- host
|
|
||||||
paths:
|
paths:
|
||||||
- packages/backend/**
|
- packages/backend/**
|
||||||
# for permissions
|
# for permissions
|
||||||
|
@ -71,12 +69,7 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
- name: Test
|
- name: Test
|
||||||
run: pnpm --filter backend test-and-coverage
|
run: pnpm --filter backend test
|
||||||
- name: Upload to Codecov
|
|
||||||
uses: codecov/codecov-action@v5
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
|
||||||
files: ./packages/backend/coverage/coverage-final.json
|
|
||||||
|
|
||||||
e2e:
|
e2e:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -130,9 +123,4 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
- name: Test
|
- name: Test
|
||||||
run: pnpm --filter backend test-and-coverage:e2e
|
run: pnpm --filter backend test:e2e
|
||||||
- name: Upload to Codecov
|
|
||||||
uses: codecov/codecov-action@v5
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
|
||||||
files: ./packages/backend/coverage/coverage-final.json
|
|
||||||
|
|
7
.github/workflows/test-frontend.yml
vendored
7
.github/workflows/test-frontend.yml
vendored
|
@ -51,9 +51,4 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
- name: Test
|
- name: Test
|
||||||
run: pnpm --filter frontend test-and-coverage
|
run: pnpm --filter frontend test
|
||||||
- name: Upload Coverage
|
|
||||||
uses: codecov/codecov-action@v5
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
|
||||||
files: ./packages/frontend/coverage/coverage-final.json
|
|
||||||
|
|
10
.github/workflows/test-misskey-js.yml
vendored
10
.github/workflows/test-misskey-js.yml
vendored
|
@ -6,9 +6,7 @@ name: Test (misskey.js)
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- beta
|
- main
|
||||||
- io
|
|
||||||
- host
|
|
||||||
paths:
|
paths:
|
||||||
- packages/misskey-js/**
|
- packages/misskey-js/**
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -56,9 +54,3 @@ jobs:
|
||||||
run: pnpm --filter misskey-js test
|
run: pnpm --filter misskey-js test
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
|
|
||||||
- name: Upload Coverage
|
|
||||||
uses: codecov/codecov-action@v5
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
|
||||||
files: ./packages/misskey-js/coverage/coverage-final.json
|
|
||||||
|
|
4
.github/workflows/test-production.yml
vendored
4
.github/workflows/test-production.yml
vendored
|
@ -3,9 +3,7 @@ name: Test (production install and build)
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- beta
|
- main
|
||||||
- io
|
|
||||||
- host
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|
4
.github/workflows/validate-api-json.yml
vendored
4
.github/workflows/validate-api-json.yml
vendored
|
@ -3,9 +3,7 @@ name: Test (backend)
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- beta
|
- main
|
||||||
- io
|
|
||||||
- host
|
|
||||||
paths:
|
paths:
|
||||||
- packages/backend/**
|
- packages/backend/**
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
Loading…
Reference in a new issue