chore(deps): update linters (major) #12950
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: Node CI | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- '**.md**' | |
branches: [ main ] | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '**.md**' | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
lint-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
with: | |
fetch-depth: 100 | |
- name: Read Node.js version from package.json | |
run: echo "nodeVersion=$(node -p "require('./package.json').engines.node")" >> $GITHUB_OUTPUT | |
id: engines | |
- name: Set up node | |
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 | |
with: | |
node-version: ${{ steps.engines.outputs.nodeVersion }} | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn-${{ steps.yarn-cache-dir-path.outputs.dir }} | |
# The yarn cache is not node_modules | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Generate GraphQL types | |
run: yarn generate | |
- name: Lint code | |
run: yarn lint | |
- name: Run Jest tests | |
run: yarn test:unit --coverage --silent | |
- name: Build Storybook | |
run: yarn storybook:build | |
- name: start Happo run | |
run: yarn happo-ci-github-actions | |
env: | |
HAPPO_API_KEY: ${{ secrets.HAPPO_API_KEY }} | |
HAPPO_API_SECRET: ${{ secrets.HAPPO_API_SECRET }} |