Skip to content

Add eslint plugin for source #6068

Add eslint plugin for source

Add eslint plugin for source #6068

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]
env:
# The `accessToken` in `nx.json` is a read-only token for use in dev.
# This overrides it with a read-write token so that CI run results are
# remotely cached.
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
jobs:
validate:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- task: formatting:check
- task: lint
- task: test
- task: e2e
- task: build
- task: verify-dist
- task: build:storybooks
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v4
- uses: ./.github/actions/setup-node-env
- run: make ${{ matrix.task }}
chromatic:
needs: validate
uses: ./.github/workflows/chromatic.yml
permissions:
checks: write
secrets:
CHROMATIC_SOURCE_FOUNDATIONS_TOKEN: ${{ secrets.CHROMATIC_SOURCE_FOUNDATIONS_TOKEN }}
CHROMATIC_SOURCE_REACT_COMPONENTS_TOKEN: ${{ secrets.CHROMATIC_SOURCE_REACT_COMPONENTS_TOKEN }}
CHROMATIC_SOURCE_REACT_COMPONENTS_DEVELOPMENT_KITCHEN_TOKEN: ${{ secrets.CHROMATIC_SOURCE_REACT_COMPONENTS_DEVELOPMENT_KITCHEN_TOKEN }}
if: |
github.ref == 'refs/heads/main' ||
contains(github.event.pull_request.labels.*.name, 'run_chromatic') ||
github.event.pull_request.user.login == 'dependabot[bot]' ||
github.event.pull_request.user.login == 'gu-changesets-release-pr[bot]'