Skip to content

Commit

Permalink
Modify TurboRepo server configuration in CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallku committed Jun 12, 2024
1 parent ebb9bc7 commit 5f7a23f
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/check_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:

env:
CI: true
TURBO_API: http://127.0.0.1:9080
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: foo

jobs:
visual-regression-test:
Expand All @@ -13,7 +16,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: marshallku/actions/setup-pnpm@master
- uses: dtinth/setup-github-actions-caching-for-turbo@v1
- name: TurboRepo server
uses: felixmosh/turborepo-gh-artifacts@v3
with:
repo-token: ${{ github.token }}
- name: Install puppeteer
run: npx puppeteer browsers install chrome
- name: Run backstop server in background
Expand Down
26 changes: 23 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

env:
CI: true
TURBO_API: http://127.0.0.1:9080
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: foo

jobs:
check-spelling:
Expand All @@ -21,7 +24,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: marshallku/actions/setup-pnpm@master
- uses: dtinth/setup-github-actions-caching-for-turbo@v1
- name: TurboRepo server
uses: felixmosh/turborepo-gh-artifacts@v3
with:
repo-token: ${{ github.token }}
- name: Build apps and packages
run: pnpm build
env:
Expand All @@ -32,6 +38,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: marshallku/actions/setup-pnpm@master
- name: TurboRepo server
uses: felixmosh/turborepo-gh-artifacts@v3
with:
repo-token: ${{ github.token }}
- name: Check code quality
run: pnpm lint
code-ql-analyze:
Expand Down Expand Up @@ -64,7 +74,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: marshallku/actions/setup-pnpm@master
- uses: dtinth/setup-github-actions-caching-for-turbo@v1
- name: TurboRepo server
uses: felixmosh/turborepo-gh-artifacts@v3
with:
repo-token: ${{ github.token }}
- name: Run tests
run: pnpm test
test-blog-e2e:
Expand All @@ -73,6 +86,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: marshallku/actions/setup-pnpm@master
- name: TurboRepo server
uses: felixmosh/turborepo-gh-artifacts@v3
with:
repo-token: ${{ github.token }}
- name: Setup playwright
run: pnpm exec playwright install --with-deps
- name: Build applications
Expand All @@ -91,7 +108,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: marshallku/actions/setup-pnpm@master
- uses: dtinth/setup-github-actions-caching-for-turbo@v1
- name: TurboRepo server
uses: felixmosh/turborepo-gh-artifacts@v3
with:
repo-token: ${{ github.token }}
- name: Build app
run: |
cp apps/blog/.env.example apps/blog/.env
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/visual_regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,23 @@ on:

concurrency: ${{ github.workflow }}-${{ github.ref }}

env:
CI: true
TURBO_API: http://127.0.0.1:9080
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: foo

jobs:
test:
name: Run visual regression test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: marshallku/actions/setup-pnpm@master
- uses: dtinth/setup-github-actions-caching-for-turbo@v1
- name: TurboRepo server
uses: felixmosh/turborepo-gh-artifacts@v3
with:
repo-token: ${{ github.token }}
- name: Install puppeteer
run: npx puppeteer browsers install chrome
- name: Run backstop server in background
Expand Down

1 comment on commit 5f7a23f

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visual regression test result - success

Component Story Success Viewport MisMatch Percentage
components-button string-children phone 0.00%
components-button string-children tablet 0.09%
typography-typography default phone 0.00%
typography-typography default tablet 0.00%

Please sign in to comment.