Skip to content

feat(ARCH-720): use design-tokens #4830

feat(ARCH-720): use design-tokens

feat(ARCH-720): use design-tokens #4830

Workflow file for this run

name: PR lint
on:
pull_request:
permissions:
contents: write
deployments: read
pull-requests: write # needed to annotate code
statuses: write
checks: write
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
name: Lint
steps:
- name: Checkout sources
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3.5.3
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Use Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: 18
check-latest: true
registry-url: "https://registry.npmjs.org/"
scope: "@talend"
cache: "yarn"
- name: Install
run: yarn install --frozen-lockfile --ignore-scripts
- name: eslint + stylelint
continue-on-error: true
id: eslint
run: yarn lint
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@54849deb963ca9f24185fb5de2965e002d066e6b #v37.0.5
- name: Merge lint
run: node merge-report.js ${{ steps.changed-files.outputs.all_changed_files }}
- name: Annotate Code Linting Results
uses: ataylorme/eslint-annotate-action@2c426a387ed738e9522e93abfcb4cfc57b46458a #v2.2.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: ./eslint-report.json