From 71ca8d7f5cd801330364dbd5acafcae79ce22148 Mon Sep 17 00:00:00 2001 From: Cody Kaup Date: Fri, 18 Oct 2024 11:33:01 -0500 Subject: [PATCH] WIP 2 --- .github/workflows/package-size.yml | 1 + .github/workflows/pull-request-workflow.yml | 68 +++++++++++++++++-- .github/workflows/smoke-test-action-next.yml | 0 .github/workflows/smoke-test-action.yml | 0 .github/workflows/smoke-test-node-api.yml | 7 +- .github/workflows/smoke-test-node18.yml | 7 +- .github/workflows/smoke-test-node20.yml | 7 +- .github/workflows/smoke-test-npx.yml | 7 +- .github/workflows/smoke-test-windows.yml | 7 +- .github/workflows/smoke-test-yarn-berry.yml | 7 +- .github/workflows/smoke-test-yarn-canary.yml | 7 +- .github/workflows/smoke-test-yarn-classic.yml | 7 +- .github/workflows/smoke-test-yarn.yml | 7 +- 13 files changed, 119 insertions(+), 13 deletions(-) mode change 100755 => 100644 .github/workflows/smoke-test-action-next.yml mode change 100755 => 100644 .github/workflows/smoke-test-action.yml mode change 100755 => 100644 .github/workflows/smoke-test-node-api.yml mode change 100755 => 100644 .github/workflows/smoke-test-node18.yml mode change 100755 => 100644 .github/workflows/smoke-test-node20.yml mode change 100755 => 100644 .github/workflows/smoke-test-yarn.yml diff --git a/.github/workflows/package-size.yml b/.github/workflows/package-size.yml index 820d1eb40..fbb87a2a5 100644 --- a/.github/workflows/package-size.yml +++ b/.github/workflows/package-size.yml @@ -1,4 +1,5 @@ name: Chromatic Package Size + on: workflow_call: secrets: diff --git a/.github/workflows/pull-request-workflow.yml b/.github/workflows/pull-request-workflow.yml index bb640caba..afc54f3b6 100644 --- a/.github/workflows/pull-request-workflow.yml +++ b/.github/workflows/pull-request-workflow.yml @@ -11,19 +11,79 @@ on: - reopened jobs: + package-size: + uses: ./.github/workflows/package-size.yml + secrets: + UPSTASH_REDIS_REST_URL: ${{ secrets.UPSTASH_REDIS_REST_URL }} + UPSTASH_API_KEY: ${{ secrets.UPSTASH_API_KEY }} + lint-and-test: uses: ./.github/workflows/lint-and-test.yml secrets: CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} - package-size: - uses: ./.github/workflows/package-size.yml + chromatic: + uses: ./.github/workflows/chromatic-prod.yml + needs: lint-and-test secrets: - UPSTASH_REDIS_REST_URL: ${{ secrets.UPSTASH_REDIS_REST_URL }} - UPSTASH_API_KEY: ${{ secrets.UPSTASH_API_KEY }} + CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} smoke-test-action: uses: ./.github/workflows/smoke-test-action.yml needs: lint-and-test secrets: SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: ${{ secrets.SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN }} + + smoke-test-node-api: + uses: ./.github/workflows/smoke-test-node-api.yml + needs: lint-and-test + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: ${{ secrets.SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN }} + + smoke-test-node-18: + uses: ./.github/workflows/smoke-test-node18.yml + needs: lint-and-test + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: ${{ secrets.SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN }} + + smoke-test-node-20: + uses: ./.github/workflows/smoke-test-node20.yml + needs: lint-and-test + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: ${{ secrets.SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN }} + + smoke-test-npx: + uses: ./.github/workflows/smoke-test-npx.yml + needs: lint-and-test + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: ${{ secrets.SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN }} + + smoke-test-windows: + uses: ./.github/workflows/smoke-test-windows.yml + needs: lint-and-test + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: ${{ secrets.SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN }} + + smoke-test-yarn: + uses: ./.github/workflows/smoke-test-yarn.yml + needs: lint-and-test + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: ${{ secrets.SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN }} + + smoke-test-yarn-berry: + uses: ./.github/workflows/smoke-test-yarn-berry.yml + needs: lint-and-test + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: ${{ secrets.SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN }} + + smoke-test-yarn-canary: + uses: ./.github/workflows/smoke-test-yarn-canary.yml + needs: lint-and-test + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: ${{ secrets.SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN }} + + smoke-test-yarn-classic: + uses: ./.github/workflows/smoke-test-yarn-classic.yml + needs: lint-and-test + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: ${{ secrets.SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN }} diff --git a/.github/workflows/smoke-test-action-next.yml b/.github/workflows/smoke-test-action-next.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/smoke-test-action.yml b/.github/workflows/smoke-test-action.yml old mode 100755 new mode 100644 diff --git a/.github/workflows/smoke-test-node-api.yml b/.github/workflows/smoke-test-node-api.yml old mode 100755 new mode 100644 index 29d2accd6..3d980175e --- a/.github/workflows/smoke-test-node-api.yml +++ b/.github/workflows/smoke-test-node-api.yml @@ -1,5 +1,10 @@ name: Smoke test via node api -on: push + +on: + workflow_call: + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: + required: true permissions: contents: read diff --git a/.github/workflows/smoke-test-node18.yml b/.github/workflows/smoke-test-node18.yml old mode 100755 new mode 100644 index 262d61f7c..d3a51b5b1 --- a/.github/workflows/smoke-test-node18.yml +++ b/.github/workflows/smoke-test-node18.yml @@ -1,5 +1,10 @@ name: Smoke test via Node 18 -on: push + +on: + workflow_call: + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: + required: true permissions: contents: read diff --git a/.github/workflows/smoke-test-node20.yml b/.github/workflows/smoke-test-node20.yml old mode 100755 new mode 100644 index 33c3d5965..b4df03c16 --- a/.github/workflows/smoke-test-node20.yml +++ b/.github/workflows/smoke-test-node20.yml @@ -1,5 +1,10 @@ name: Smoke test via Node 20 -on: push + +on: + workflow_call: + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: + required: true permissions: contents: read diff --git a/.github/workflows/smoke-test-npx.yml b/.github/workflows/smoke-test-npx.yml index a9db96c92..660ccde40 100644 --- a/.github/workflows/smoke-test-npx.yml +++ b/.github/workflows/smoke-test-npx.yml @@ -1,5 +1,10 @@ name: Smoke test via npx -on: push + +on: + workflow_call: + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: + required: true permissions: contents: read diff --git a/.github/workflows/smoke-test-windows.yml b/.github/workflows/smoke-test-windows.yml index e55489a18..ace126176 100644 --- a/.github/workflows/smoke-test-windows.yml +++ b/.github/workflows/smoke-test-windows.yml @@ -1,5 +1,10 @@ name: Smoke test via yarn on Windows -on: push + +on: + workflow_call: + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: + required: true permissions: contents: read diff --git a/.github/workflows/smoke-test-yarn-berry.yml b/.github/workflows/smoke-test-yarn-berry.yml index 9b2d851ad..06c2de3ea 100644 --- a/.github/workflows/smoke-test-yarn-berry.yml +++ b/.github/workflows/smoke-test-yarn-berry.yml @@ -1,5 +1,10 @@ name: Smoke test via yarn berry -on: push + +on: + workflow_call: + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: + required: true permissions: contents: read diff --git a/.github/workflows/smoke-test-yarn-canary.yml b/.github/workflows/smoke-test-yarn-canary.yml index a66718bf0..f198815f1 100644 --- a/.github/workflows/smoke-test-yarn-canary.yml +++ b/.github/workflows/smoke-test-yarn-canary.yml @@ -1,5 +1,10 @@ name: Smoke test via yarn canary -on: push + +on: + workflow_call: + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: + required: true permissions: contents: read diff --git a/.github/workflows/smoke-test-yarn-classic.yml b/.github/workflows/smoke-test-yarn-classic.yml index c9df00ada..45f2e1426 100644 --- a/.github/workflows/smoke-test-yarn-classic.yml +++ b/.github/workflows/smoke-test-yarn-classic.yml @@ -1,5 +1,10 @@ name: Smoke test via yarn classic -on: push + +on: + workflow_call: + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: + required: true permissions: contents: read diff --git a/.github/workflows/smoke-test-yarn.yml b/.github/workflows/smoke-test-yarn.yml old mode 100755 new mode 100644 index 2b2130cdb..4cba7fadb --- a/.github/workflows/smoke-test-yarn.yml +++ b/.github/workflows/smoke-test-yarn.yml @@ -1,5 +1,10 @@ name: Smoke test via yarn -on: push + +on: + workflow_call: + secrets: + SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN: + required: true permissions: contents: read