Skip to content

Commit

Permalink
ci: commit vitest files after auto update it
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Aug 25, 2024
1 parent 0cc8cde commit b76e7c8
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 31 deletions.
92 changes: 63 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,15 @@ jobs:
run: yarn test:integration
env:
FORCE_COLOR: true

- name: Upload vitest config files
uses: actions/upload-artifact@v4
with:
name: vitest-config-integration-${{ matrix.os }}-${{ matrix.version }}
overwrite: true
path: |
packages/platform/platform-express/vitest.config.mts
packages/platform/platform-koa/vitest.config.mts
continue-on-error: true
test-core:
runs-on: ubuntu-latest

Expand All @@ -89,6 +97,15 @@ jobs:
run: yarn tsc --build
- name: Run test
run: yarn test:core --since origin/production
- name: Upload vitest config files
uses: actions/upload-artifact@v4
with:
name: vitest-config-core
path: |
packages/{core,di,engines}/vitest.config.mts
packages/platform/common/vitest.config.mts
packages/utils/normalize-path/vitest.config.mts
continue-on-error: true

test-specs:
runs-on: ubuntu-latest
Expand All @@ -111,7 +128,13 @@ jobs:
run: yarn tsc --build
- name: Run test
run: yarn test:specs --since origin/production

- name: Upload vitest config files
uses: actions/upload-artifact@v4
with:
name: vitest-config-specs
path: |
packages/specs/*/vitest.config.mts
continue-on-error: true
test-platform:
runs-on: ubuntu-latest

Expand All @@ -133,7 +156,14 @@ jobs:
run: yarn tsc --build
- name: Run test
run: yarn test:platform --since origin/production

- name: Upload vitest config files
uses: actions/upload-artifact@v4
with:
name: vitest-config-platform
path: |
packages/platform/platform-*/vitest.config.mts
!packages/platform/platform-express/vitest.config.mts
!packages/platform/platform-koa/vitest.config.mts
test-orm:
runs-on: ubuntu-latest

Expand All @@ -155,7 +185,12 @@ jobs:
run: yarn tsc --build
- name: Run test
run: yarn test:orm --since origin/production

- name: Upload vitest config files
uses: actions/upload-artifact@v4
with:
name: vitest-config
path: |
packages/orm/*/vitest.config.mts
test-graphql:
runs-on: ubuntu-latest

Expand All @@ -177,7 +212,12 @@ jobs:
run: yarn tsc --build
- name: Run test
run: yarn test:graphql --since origin/production

- name: Upload vitest config files
uses: actions/upload-artifact@v4
with:
name: vitest-config-graphql
path: |
packages/graphql/*/vitest.config.mts
test-security:
runs-on: ubuntu-latest

Expand All @@ -199,7 +239,12 @@ jobs:
run: yarn tsc --build
- name: Run test
run: yarn test:security --since origin/production

- name: Upload vitest config files
uses: actions/upload-artifact@v4
with:
name: vitest-config-security
path: |
packages/security/*/vitest.config.mts
test-third-parties:
runs-on: ubuntu-latest

Expand All @@ -221,33 +266,16 @@ jobs:
run: yarn tsc --build
- name: Run test
run: yarn test:third-parties --since origin/production

test-formio:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.12.2]

steps:
- uses: actions/checkout@v3
- name: Upload vitest config files
uses: actions/upload-artifact@v4
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --immutable --network-timeout 500000
- name: Run build
run: yarn tsc --build
- name: Run test
run: yarn test:formio --since origin/production
name: vitest-config-third-parties
path: |
packages/third-parties/*/vitest.config.mts
deploy-packages:
runs-on: ubuntu-latest
needs:
[lint, test-core, test-specs, test-platform, test-integration, test-orm, test-security, test-graphql, test-third-parties, test-formio]
needs: [lint, test-core, test-specs, test-platform, test-integration, test-orm, test-security, test-graphql, test-third-parties]
if: github.event_name != 'pull_request' && contains('
refs/heads/production
refs/heads/alpha
Expand All @@ -267,6 +295,12 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --network-timeout 500000
- name: Download Core vitest config files
uses: actions/download-artifact@v3
with:
path: .
- name: Release packages
env:
CI: true
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
"test:graphql": "lerna run test:ci --scope '@tsed/{apollo,typegraphql}' --stream",
"test:security": "lerna run test:ci --scope '@tsed/{jwks,oidc-provider,passport,oidc-provider-plugin-wildcard-redirect-uri}' --stream",
"test:specs": "lerna run test --scope '@tsed/{ajv,exceptions,json-mapper,schema,swagger}' --stream --concurrency 2",
"test:third-parties": "lerna run test:ci --scope '@tsed/{agenda,bullmq,components-scan,event-emitter,formio,pulse,sse,socketio,stripe,temporal,terminus,vike,vite-ssr-plugin}' --stream --concurrency 4",
"test:formio": "lerna run test:ci --scope '@tsed/{schema-formio,formio}' --stream",
"test:third-parties": "lerna run test:ci --scope '@tsed/{agenda,bullmq,components-scan,event-emitter,formio,pulse,sse,socketio,stripe,temporal,terminus,vike,vite-ssr-plugin,schema-formio,formio}' --stream --concurrency 4",
"coverage": "merge-istanbul --out coverage/coverage-final.json \"**/packages/**/coverage/coverage-final.json\" && nyc report --reporter text --reporter html --reporter lcov -t coverage --report-dir coverage",
"barrels": "lerna run barrels",
"build": "monorepo build --verbose",
Expand Down

0 comments on commit b76e7c8

Please sign in to comment.