Standardise icon slot spacing #7644
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate | |
on: | |
- push | |
- pull_request | |
jobs: | |
test: | |
name: Lint & Test | |
if: (github.event_name != 'pull_request' && !github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) | |
runs-on: ubuntu-latest | |
env: | |
CI: true | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
# This makes Actions fetch all Git history so that chromatic can diff against previous commits | |
fetch-depth: 0 | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version-file: package.json | |
- name: Install Dependencies | |
run: pnpm i | |
- name: Lint | |
run: pnpm lint | |
- name: Build & Test | |
run: | | |
pnpm test | |
pnpm build | |
pnpm postbuild | |
- name: Chromatic | |
run: pnpm storybook:chromatic | |
env: | |
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_APP_CODE }} |