Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
codykaup committed Oct 18, 2024
1 parent b4170a8 commit d2a75a7
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Lint and Test
on: push

on:
workflow_call:
secrets:
CODACY_PROJECT_TOKEN:
required: true

permissions:
contents: read
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/package-size.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Chromatic Package Size
on:
pull_request:
branches: [main]
types: [opened, synchronize]
workflow_call:
secrets:
UPSTASH_REDIS_REST_URL:
required: true
UPSTASH_API_KEY:
required: true

permissions:
contents: read
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/pull-request-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Workflow for PR branches
# Runs the test workflows and the canary release workflow
name: Test and Release PR

on:
push:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
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
secrets:
UPSTASH_REDIS_REST_URL: ${{ secrets.UPSTASH_REDIS_REST_URL }}
UPSTASH_API_KEY: ${{ secrets.UPSTASH_API_KEY }}

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 }}
6 changes: 5 additions & 1 deletion .github/workflows/smoke-test-action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Smoke test via action
on: push
on:
workflow_call:
secrets:
SMOKE_TESTS_CHROMATIC_PROJECT_TOKEN:
required: true

permissions:
contents: read
Expand Down

0 comments on commit d2a75a7

Please sign in to comment.