| 
 | 1 | +name: Fork checks  | 
 | 2 | + | 
 | 3 | +# This workflow is only for forks, so they can get basic checks in without a CircleCI API key  | 
 | 4 | +on:  | 
 | 5 | +  push:  | 
 | 6 | + | 
 | 7 | +env:  | 
 | 8 | +  NODE_OPTIONS: '--max_old_space_size=4096'  | 
 | 9 | + | 
 | 10 | +jobs:  | 
 | 11 | +  check:  | 
 | 12 | +    name: Core Type Checking  | 
 | 13 | +    if: github.repository_owner != 'storybookjs'  | 
 | 14 | +    runs-on: ubuntu-latest  | 
 | 15 | +    steps:  | 
 | 16 | +      - uses: actions/checkout@v4  | 
 | 17 | +        with:  | 
 | 18 | +          fetch-depth: 2  | 
 | 19 | + | 
 | 20 | +      - name: Setup Node.js and Install Dependencies  | 
 | 21 | +        uses: ./.github/actions/setup-node-and-install  | 
 | 22 | +        with:  | 
 | 23 | +          install-code-deps: true  | 
 | 24 | + | 
 | 25 | +      - name: check  | 
 | 26 | +        run: yarn task --task check  | 
 | 27 | + | 
 | 28 | +  prettier:  | 
 | 29 | +    name: Core Formatting  | 
 | 30 | +    if: github.repository_owner != 'storybookjs'  | 
 | 31 | +    runs-on: ubuntu-latest  | 
 | 32 | +    steps:  | 
 | 33 | +      - uses: actions/checkout@v4  | 
 | 34 | +        with:  | 
 | 35 | +          fetch-depth: 2  | 
 | 36 | + | 
 | 37 | +      - name: Setup Node.js and Install Dependencies  | 
 | 38 | +        uses: ./.github/actions/setup-node-and-install  | 
 | 39 | +        with:  | 
 | 40 | +          install-code-deps: true  | 
 | 41 | + | 
 | 42 | +      - name: prettier  | 
 | 43 | +        run: cd code && yarn lint:prettier --check .  | 
 | 44 | + | 
 | 45 | +  test:  | 
 | 46 | +    strategy:  | 
 | 47 | +      matrix:  | 
 | 48 | +        os: [windows-latest, ubuntu-latest]  | 
 | 49 | +    runs-on: ${{ matrix.os }}  | 
 | 50 | +    name: Core Unit Tests, ${{ matrix.os }}  | 
 | 51 | +    if: github.repository_owner != 'storybookjs'  | 
 | 52 | +    steps:  | 
 | 53 | +      - uses: actions/checkout@v4  | 
 | 54 | +        with:  | 
 | 55 | +          fetch-depth: 2  | 
 | 56 | + | 
 | 57 | +      - name: Setup Node.js and Install Dependencies  | 
 | 58 | +        uses: ./.github/actions/setup-node-and-install  | 
 | 59 | +        with:  | 
 | 60 | +          install-code-deps: true  | 
 | 61 | + | 
 | 62 | +      - name: compile  | 
 | 63 | +        run: yarn task --task compile --start-from=compile  | 
 | 64 | + | 
 | 65 | +      - name: Install Playwright Dependencies  | 
 | 66 | +        run: cd code && yarn exec playwright install chromium --with-deps  | 
 | 67 | + | 
 | 68 | +      - name: test  | 
 | 69 | +        run: yarn test  | 
0 commit comments