Skip to content

Merge branch 'X2-6577' of github.com:rushi/ui-kit into X2-6577-stage #150

Merge branch 'X2-6577' of github.com:rushi/ui-kit into X2-6577-stage

Merge branch 'X2-6577' of github.com:rushi/ui-kit into X2-6577-stage #150

Workflow file for this run

name: Annotate ES Lint Results
on:
push:
pull_request_target:
types: [assigned, opened, synchronize, reopened]
env:
DISABLE_PROGRESS: true
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
GenerateReport:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: "${{ secrets.ES_LINT_TOKEN }}"
ref: ${{github.event.pull_request.head.sha}}
repository: ${{github.event.pull_request.head.repo.full_name}}
persist-credential: false
- name: Node.JS 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: "npm"
# - run: git config --global url."https://${{ secrets.ES_LINT_TOKEN }}@github.com/".insteadOf ssh://[email protected]/
- name: Install Node Dependencies
run: npm ci
env:
CI: TRUE
- name: Save Code Linting Report to JSON
# This is to show failures in Github pull request using the action below
run: npm run lint:report
continue-on-error: true
env:
DISABLE_PROGRESS: true
- name: Annotate Code Linting Results
uses: ataylorme/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: "eslint_report.json"
- name: Upload ESLint report
uses: actions/upload-artifact@v2
with:
name: eslint_report.json
path: eslint_report.json