Skip to content

ci(dependabot-changeset): use a deploy key instead of GITHUB_TOKEN [AR-59671] #1921

ci(dependabot-changeset): use a deploy key instead of GITHUB_TOKEN [AR-59671]

ci(dependabot-changeset): use a deploy key instead of GITHUB_TOKEN [AR-59671] #1921

Workflow file for this run

name: PR Checks
on: pull_request
permissions: {}
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.number }}'
cancel-in-progress: true
env:
# See: https://github.com/vercel/turborepo/issues/9320#issuecomment-2499219314
TURBO_SCM_BASE: ${{ github.event.pull_request.base.sha }}
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout source code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
filter: 'blob:none'
persist-credentials: false
- name: Install Dependencies
uses: ./.github/actions/install
- name: Cache turbo
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: .turbo
key: ${{ runner.os }}-turbo-lint-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-lint-
- name: Run Lint
run: pnpm lint --affected
typecheck:
name: Type Check
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout source code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
filter: 'blob:none'
persist-credentials: false
- name: Install Dependencies
uses: ./.github/actions/install
- name: Cache turbo
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: .turbo
key: ${{ runner.os }}-turbo-typecheck-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-typecheck-
- name: Run Type Check
run: pnpm typecheck --affected
check-format:
name: Check Format
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout source code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Install Dependencies
uses: ./.github/actions/install
- name: Run Format Check
run: pnpm format:check
test:
name: Test
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout source code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
filter: 'blob:none'
persist-credentials: false
- name: Install Dependencies
uses: ./.github/actions/install
- name: Cache turbo
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: .turbo
key: ${{ runner.os }}-turbo-test-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-test-
- name: Run Tests
run: pnpm test:coverage --affected
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout source code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
filter: 'blob:none'
persist-credentials: false
- name: Install Dependencies
uses: ./.github/actions/install
- name: Cache turbo
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: .turbo
key: ${{ runner.os }}-turbo-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-build-
- name: Run Build
run: |
pnpm build --affected
pnpm lint:build --affected
- name: Run Tests With Build
run: pnpm test:requires-build --affected
build-storybook:
name: Build Storybook
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout source code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
filter: 'blob:none'
persist-credentials: false
- name: Install Dependencies
uses: ./.github/actions/install
- name: Cache turbo
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: .turbo
key: ${{ runner.os }}-turbo-build-storybook-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-build-storybook-
- name: Run Build Storybook
run: pnpm build:storybook --affected
packages-versions:
name: Check Packages Versions
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout source code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Install Dependencies
uses: ./.github/actions/install
- name: Run Packages Versions Check
run: pnpm lint:versions
spell-check:
name: Spell Check
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout source code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Install Dependencies
uses: ./.github/actions/install
- name: Run Spell Check
run: pnpm lint:spell
unused-dedupe:
name: Check Unused Code and Dependencies
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout source code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Install Dependencies
uses: ./.github/actions/install
- name: Run Unused Code Check
run: pnpm lint:unused
- name: Run Dependencies Deduplication Check
run: pnpm lint:dedupe
action-lint:
name: GitHub Actions Lint
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout source code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Install Action Lint
id: install_actionlint
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
- name: Run Action Lint
env:
ACTIONLINT: ${{ steps.install_actionlint.outputs.executable }}
run: '"$ACTIONLINT" -color'