Skip to content

Commit a99b246

Browse files
committed
initial
1 parent b8acf30 commit a99b246

2 files changed

Lines changed: 4 additions & 92 deletions

File tree

.github/actions/init/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
66
required: false
77
# This is pinned to `18.20.2` because `18.20.3` bumps npm from `10.5.0` to `10.7.0`, which causes our verdaccio setup to fail (see SDK-1793).
88
# TODO: Update workflows/ci.yml when this isn't pinned anymore.
9-
default: '18.20.2'
9+
default: '18.20.3'
1010
playwright-enabled:
1111
description: 'Enable Playwright?'
1212
required: false

.github/workflows/ci.yml

Lines changed: 3 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
env:
2222
# TODO: Update once actions/init/action.yml isn't pinned to 18.20.2
23-
NODE_VERSION: 18.20.2
23+
NODE_VERSION: 18.20.3
2424
TURBO_SUMMARIZE: false
2525

2626
steps:
@@ -44,43 +44,9 @@ jobs:
4444
run: npm ls
4545
shell: bash
4646

47-
- name: Require Changeset
48-
if: ${{ !(github.event_name == 'merge_group') }}
49-
run: if [[ "${{ github.event.pull_request.user.login }}" = "clerk-cookie" || "${{ github.event.pull_request.user.login }}" = "renovate[bot]" ]]; then echo 'Skipping' && exit 0; else npx changeset status --since=origin/main; fi
50-
51-
- name: Lint GitHub Actions Workflows
52-
run: npx eslint .github
53-
shell: bash
54-
55-
- name: Check Formatting
56-
run: npm run format:check
57-
5847
- name: Build Packages
5948
run: npx turbo build $TURBO_ARGS --only
6049

61-
- name: Check size using bundlewatch
62-
run: npx turbo bundlewatch $TURBO_ARGS --only
63-
env:
64-
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
65-
CI_REPO_OWNER: ${{ vars.REPO_OWNER }}
66-
CI_REPO_NAME: ${{ vars.REPO_NAME }}
67-
CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
68-
CI_BRANCH: ${{ github.ref }}
69-
CI_BRANCH_BASE: refs/heads/main
70-
71-
- name: Lint packages using publint
72-
run: npx turbo lint:publint $TURBO_ARGS --only
73-
74-
- name: Lint types using attw
75-
run: npx turbo lint:attw $TURBO_ARGS --filter=!@clerk/nextjs --filter=!@clerk/tanstack-start --filter=!@clerk/elements --filter=!@clerk/backend --only
76-
77-
- name: Lint types using attw [Errors Allowed]
78-
run: npx turbo lint:attw $TURBO_ARGS --filter=@clerk/nextjs --filter=@clerk/tanstack-start --filter=@clerk/backend --filter=@clerk/elements --continue --only
79-
continue-on-error: true # TODO: Remove this when all related errors are fixed
80-
81-
- name: Run lint
82-
run: npx turbo lint $TURBO_ARGS --only -- --quiet
83-
8450
- name: Upload Turbo Summary
8551
uses: actions/upload-artifact@v3
8652
if: ${{ env.TURBO_SUMMARIZE == 'true' }}
@@ -90,53 +56,6 @@ jobs:
9056
path: .turbo/runs
9157
retention-days: 5
9258

93-
unit-tests:
94-
name: Unit Tests
95-
needs: formatting-linting
96-
runs-on: ${{ vars.RUNNER_LARGE || 'ubuntu-latest-l' }}
97-
timeout-minutes: ${{ vars.TIMEOUT_MINUTES_NORMAL && fromJSON(vars.TIMEOUT_MINUTES_NORMAL) || 10 }}
98-
99-
env:
100-
TURBO_SUMMARIZE: false
101-
102-
strategy:
103-
matrix:
104-
node-version: [18, 20]
105-
106-
steps:
107-
- name: Checkout Repo
108-
uses: actions/checkout@v4
109-
with:
110-
fetch-depth: 0
111-
show-progress: false
112-
113-
- name: Setup
114-
id: config
115-
uses: ./.github/actions/init
116-
with:
117-
# Ensures that all builds are cached appropriately with a consistent run name `Unit Tests (18)`.
118-
# TODO: Update once actions/init/action.yml isn't pinned to 18.20.2
119-
node-version: ${{ matrix.node-version == '18' && '18.20.2' || matrix.node-version }}
120-
turbo-signature: ${{ secrets.TURBO_REMOTE_CACHE_SIGNATURE_KEY }}
121-
turbo-summarize: ${{ env.TURBO_SUMMARIZE }}
122-
turbo-team: ${{ vars.TURBO_TEAM }}
123-
turbo-token: ${{ secrets.TURBO_TOKEN }}
124-
125-
- name: Run tests
126-
run: npx turbo test $TURBO_ARGS
127-
env:
128-
# TODO: Update once actions/init/action.yml isn't pinned to 18.20.2
129-
NODE_VERSION: ${{ matrix.node-version == '18' && '18.20.2' || matrix.node-version }}
130-
131-
- name: Upload Turbo Summary
132-
uses: actions/upload-artifact@v4
133-
if: ${{ env.TURBO_SUMMARIZE == 'true' }}
134-
continue-on-error: true
135-
with:
136-
name: turbo-summary-report-unit-${{ github.run_id }}-${{ github.run_attempt }}-node-${{ matrix.node-version }}
137-
path: .turbo/runs
138-
retention-days: 5
139-
14059
integration-tests:
14160
name: Integration Tests
14261
needs: formatting-linting
@@ -145,19 +64,12 @@ jobs:
14564

14665
env:
14766
# TODO: Update once actions/init/action.yml isn't pinned to 18.20.2
148-
NODE_VERSION: 18.20.2
67+
NODE_VERSION: 18.20.3
14968

15069
strategy:
15170
matrix:
152-
test-name: ['generic', 'express', 'quickstart', 'ap-flows', 'elements']
71+
test-name: ['generic']
15372
test-project: ['chrome']
154-
include:
155-
- test-name: 'nextjs'
156-
test-project: 'chrome'
157-
next-version: '13'
158-
- test-name: 'nextjs'
159-
test-project: 'chrome'
160-
next-version: '14'
16173

16274
steps:
16375
- name: Checkout Repo

0 commit comments

Comments
 (0)