Skip to content

feat(ARCH-720): use design-tokens for colors #4863

feat(ARCH-720): use design-tokens for colors

feat(ARCH-720): use design-tokens for colors #4863

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@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.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@2a968ff601949c81b47d9c1fdb789b0d25ddeea2 #v37.1.2
- 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