ci: improve CI configuration (#15287)

* ci: improve CI configuration

* ci: add name for some jobs
This commit is contained in:
anatawa12 2025-01-16 13:22:32 +09:00 committed by GitHub
parent 6396243973
commit 363bdac39b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 12 additions and 1 deletions

View File

@ -10,14 +10,17 @@ on:
# for permissions # for permissions
- packages/misskey-js/** - packages/misskey-js/**
- .github/workflows/test-backend.yml - .github/workflows/test-backend.yml
- .github/misskey/test.yml
pull_request: pull_request:
paths: paths:
- packages/backend/** - packages/backend/**
# for permissions # for permissions
- packages/misskey-js/** - packages/misskey-js/**
- .github/workflows/test-backend.yml - .github/workflows/test-backend.yml
- .github/misskey/test.yml
jobs: jobs:
unit: unit:
name: Unit tests (backend)
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@ -80,6 +83,7 @@ jobs:
files: ./packages/backend/coverage/coverage-final.json files: ./packages/backend/coverage/coverage-final.json
e2e: e2e:
name: E2E tests (backend)
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:

View File

@ -17,6 +17,7 @@ on:
jobs: jobs:
test: test:
name: Federation test
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:

View File

@ -12,6 +12,7 @@ on:
# for e2e # for e2e
- packages/backend/** - packages/backend/**
- .github/workflows/test-frontend.yml - .github/workflows/test-frontend.yml
- .github/misskey/test.yml
pull_request: pull_request:
paths: paths:
- packages/frontend/** - packages/frontend/**
@ -20,8 +21,10 @@ on:
# for e2e # for e2e
- packages/backend/** - packages/backend/**
- .github/workflows/test-frontend.yml - .github/workflows/test-frontend.yml
- .github/misskey/test.yml
jobs: jobs:
vitest: vitest:
name: Unit tests (frontend)
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@ -56,6 +59,7 @@ jobs:
files: ./packages/frontend/coverage/coverage-final.json files: ./packages/frontend/coverage/coverage-final.json
e2e: e2e:
name: E2E tests (frontend)
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:

View File

@ -16,6 +16,7 @@ on:
- .github/workflows/test-misskey-js.yml - .github/workflows/test-misskey-js.yml
jobs: jobs:
test: test:
name: Unit tests (misskey.js)
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -12,6 +12,7 @@ env:
jobs: jobs:
production: production:
name: Production build
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:

View File

@ -1,4 +1,4 @@
name: Test (backend) name: api.json validation
on: on:
push: push: