diff --git a/.github/workflows/node.js-tests.yml b/.github/workflows/node.js-tests.yml index 5a2a25a5936..f55de0a8ec1 100644 --- a/.github/workflows/node.js-tests.yml +++ b/.github/workflows/node.js-tests.yml @@ -81,6 +81,12 @@ jobs: echo pnpm version $(pnpm -v) pnpm lint + - name: Upload Turbo Summary + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + with: + name: lint-turbo-summary + path: .turbo/runs + # DONT REMOVE THIS JOB. # TODO: Refactor and use re-usable workflow and shared artifacts build: @@ -123,6 +129,12 @@ jobs: pnpm install pnpm run build + - name: Upload Turbo Summary + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + with: + name: build-turbo-summary + path: .turbo/runs + test: name: Test needs: build @@ -175,6 +187,12 @@ jobs: - name: Run Tests run: pnpm test + - name: Upload Turbo Summary + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + with: + name: test-turbo-summary + path: .turbo/runs + test-upcoming: name: Test - Upcoming Changes needs: build @@ -228,6 +246,12 @@ jobs: - name: Run Tests run: pnpm test + - name: Upload Turbo Summary + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 + with: + name: test-upcoming-turbo-summary + path: .turbo/runs + test-localization: name: Test - i18n needs: build diff --git a/package.json b/package.json index 6b3e4606bc9..b6afeb02a97 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "scripts": { "audit-challenges": "cd curriculum && pnpm audit-challenges", "analyze-bundle": "webpack-bundle-analyzer", - "build": "turbo build", + "build": "turbo build --summarize", "build:client": "turbo -F=@freecodecamp/client build", "build:curriculum": "turbo -F=@freecodecamp/curriculum build", "build:api": "turbo -F=@freecodecamp/api build", @@ -47,7 +47,7 @@ "knip": "npx -y knip@5 --include files", "knip:all": "npx -y knip@5 ", "lint-root": "pnpm npm-run-all lint:*", - "lint": "turbo type-check && turbo lint && turbo lint-root", + "lint": "turbo type-check --summarize && turbo lint --summarize && turbo lint-root --summarize", "lint:prettier": "prettier --list-different .", "lint:css": "stylelint '**/*.css'", "preseed": "turbo setup", @@ -63,7 +63,7 @@ "serve:client": "cd ./client && pnpm run serve", "serve:client-ci": "cd ./client && pnpm run serve-ci", "start": "turbo setup && npm-run-all -p develop:server serve:client", - "test": "turbo test", + "test": "turbo test --summarize", "test-client": "turbo -F=@freecodecamp/client test", "test-api": "turbo -F=@freecodecamp/api test", "test-curriculum-content": "turbo -F=@freecodecamp/curriculum test-content",