ci: improve CI configuration (#15287)
* ci: improve CI configuration * ci: add name for some jobs
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/workflows/test-backend.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/test-backend.yml
									
									
									
									
										vendored
									
									
								
							@@ -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:
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										1
									
								
								.github/workflows/test-federation.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/test-federation.yml
									
									
									
									
										vendored
									
									
								
							@@ -17,6 +17,7 @@ on:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  test:
 | 
					  test:
 | 
				
			||||||
 | 
					    name: Federation test
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    strategy:
 | 
					    strategy:
 | 
				
			||||||
      matrix:
 | 
					      matrix:
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								.github/workflows/test-frontend.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/test-frontend.yml
									
									
									
									
										vendored
									
									
								
							@@ -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:
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										1
									
								
								.github/workflows/test-misskey-js.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/test-misskey-js.yml
									
									
									
									
										vendored
									
									
								
							@@ -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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										1
									
								
								.github/workflows/test-production.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/workflows/test-production.yml
									
									
									
									
										vendored
									
									
								
							@@ -12,6 +12,7 @@ env:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  production:
 | 
					  production:
 | 
				
			||||||
 | 
					    name: Production build
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    strategy:
 | 
					    strategy:
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								.github/workflows/validate-api-json.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/validate-api-json.yml
									
									
									
									
										vendored
									
									
								
							@@ -1,4 +1,4 @@
 | 
				
			|||||||
name: Test (backend)
 | 
					name: api.json validation
 | 
				
			||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  push:
 | 
					  push:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user