Update action workflows to work for this fork #32
26 changed files with 17 additions and 264 deletions
|
@ -1,7 +1,7 @@
|
|||
**/.git
|
||||
|
||||
.autogen
|
||||
.github
|
||||
.forgejo
|
||||
.travis
|
||||
.vscode
|
||||
.config
|
||||
|
|
|
@ -3,9 +3,7 @@ name: Check Misskey JS version
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- beta
|
||||
- io
|
||||
- host
|
||||
- main
|
||||
paths:
|
||||
- packages/misskey-js/package.json
|
||||
- package.json
|
|
@ -3,9 +3,7 @@ name: Lint
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- beta
|
||||
- io
|
||||
- host
|
||||
- main
|
||||
paths:
|
||||
- packages/backend/**
|
||||
- packages/frontend/**
|
|
@ -3,9 +3,7 @@ name: Test (backend)
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- beta
|
||||
- io
|
||||
- host
|
||||
- main
|
||||
paths:
|
||||
- packages/backend/**
|
||||
# for permissions
|
||||
|
@ -67,16 +65,11 @@ jobs:
|
|||
- name: Check pnpm-lock.yaml
|
||||
run: git diff --exit-code pnpm-lock.yaml
|
||||
- name: Copy Configure
|
||||
run: cp .github/misskey/test.yml .config
|
||||
run: cp .forgejo/misskey/test.yml .config
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
- name: Test
|
||||
run: pnpm --filter backend test-and-coverage
|
||||
- name: Upload to Codecov
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: ./packages/backend/coverage/coverage-final.json
|
||||
run: pnpm --filter backend test
|
||||
|
||||
e2e:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -126,13 +119,8 @@ jobs:
|
|||
- name: Check pnpm-lock.yaml
|
||||
run: git diff --exit-code pnpm-lock.yaml
|
||||
- name: Copy Configure
|
||||
run: cp .github/misskey/test.yml .config
|
||||
run: cp .forgejo/misskey/test.yml .config
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
- name: Test
|
||||
run: pnpm --filter backend test-and-coverage:e2e
|
||||
- name: Upload to Codecov
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: ./packages/backend/coverage/coverage-final.json
|
||||
run: pnpm --filter backend test:e2e
|
|
@ -47,13 +47,8 @@ jobs:
|
|||
- name: Check pnpm-lock.yaml
|
||||
run: git diff --exit-code pnpm-lock.yaml
|
||||
- name: Copy Configure
|
||||
run: cp .github/misskey/test.yml .config
|
||||
run: cp .forgejo/misskey/test.yml .config
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
- name: Test
|
||||
run: pnpm --filter frontend test-and-coverage
|
||||
- name: Upload Coverage
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: ./packages/frontend/coverage/coverage-final.json
|
||||
run: pnpm --filter frontend test
|
|
@ -6,9 +6,7 @@ name: Test (misskey.js)
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- beta
|
||||
- io
|
||||
- host
|
||||
- main
|
||||
paths:
|
||||
- packages/misskey-js/**
|
||||
pull_request:
|
||||
|
@ -56,9 +54,3 @@ jobs:
|
|||
run: pnpm --filter misskey-js test
|
||||
env:
|
||||
CI: true
|
||||
|
||||
- name: Upload Coverage
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: ./packages/misskey-js/coverage/coverage-final.json
|
|
@ -3,9 +3,7 @@ name: Test (production install and build)
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- beta
|
||||
- io
|
||||
- host
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
|
@ -37,6 +35,6 @@ jobs:
|
|||
- name: Check pnpm-lock.yaml
|
||||
run: git diff --exit-code pnpm-lock.yaml
|
||||
- name: Copy Configure
|
||||
run: cp .github/misskey/test.yml .config/default.yml
|
||||
run: cp .forgejo/misskey/test.yml .config/default.yml
|
||||
- name: Build
|
||||
run: pnpm build
|
|
@ -3,9 +3,7 @@ name: Test (backend)
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- beta
|
||||
- io
|
||||
- host
|
||||
- main
|
||||
paths:
|
||||
- packages/backend/**
|
||||
pull_request:
|
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 }}"
|
|
@ -161,7 +161,7 @@ pnpm dev
|
|||
### Run test
|
||||
Create a config file.
|
||||
```
|
||||
cp .github/misskey/test.yml .config/
|
||||
cp .forgejo/misskey/test.yml .config/
|
||||
```
|
||||
Prepare DB/Redis for testing.
|
||||
```
|
||||
|
@ -188,8 +188,8 @@ TODO
|
|||
- `MISSKEY_WEBFINGER_USE_HTTP`: If it's set true, WebFinger requests will be http instead of https, useful for testing federation between servers in localhost. NEVER USE IN PRODUCTION.
|
||||
|
||||
## Continuous integration
|
||||
Misskey uses GitHub Actions for executing automated tests.
|
||||
Configuration files are located in [`/.github/workflows`](/.github/workflows).
|
||||
Misskey uses Forgejo Actions for executing automated tests.
|
||||
Configuration files are located in [`/.forgejo/workflows`](/.forgejo/workflows).
|
||||
|
||||
## Vue
|
||||
Misskey uses Vue(v3) as its front-end framework.
|
||||
|
|
Loading…
Reference in a new issue