Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

feat: top creator token #5227

feat: top creator token

feat: top creator token #5227

Workflow file for this run

name: Lint
on: [pull_request]
jobs:
build:
name: Run ESLint
runs-on: ubuntu-latest
steps:
- name: Set up repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # 👈 Required to retrieve git history
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Obtain Yarn Cache directory
id: yarn-cache-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache Yarn dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --immutable
env:
CI: TRUE
- name: Run ESLint
run: ESLINT_PLUGIN_DIFF_COMMIT="origin/$GITHUB_BASE_REF..." yarn lint:report
continue-on-error: true
- name: Merge lint reports
run: jq -s '[.[]]|flatten' lint-results/*.json &> lint-results/eslint_report.json
- name: Annotate Code Linting Results
uses: ataylorme/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: "lint-results/eslint_report.json"
- name: Upload ESLint report
uses: actions/upload-artifact@v2
with:
name: eslint_report.json
path: ./lint-results/eslint_report.json
# TODO: enable test after refactor
# - name: Run Tests
# run: yarn test:expo
# continue-on-error: false