mirror of
https://github.com/facebook/sapling.git
synced 2024-10-04 22:07:44 +03:00
0a2759ca3f
Summary: The verify-addons GH action is currently the only red signal. Treating warnings as errors because process.env.CI = true. Most CI servers set it automatically. Failed to compile. [eslint] src/CommandHistoryAndProgress.tsx Line 9:14: 'CommandArg' is defined but never used typescript-eslint/no-unused-vars src/CommitInfoView/CommitInfoView.tsx Line 68:3: 'anyEditsMade' is defined but never used typescript-eslint/no-unused-vars src/CommitInfoView/GenerateWithAI.tsx Line 23:3: 'editedCommitMessages' is defined but never used typescript-eslint/no-unused-vars Attempt to fix it by setting CI to false. Reviewed By: zzl0 Differential Revision: D51434914 fbshipit-source-id: 63a28763ae09281ceede7d17173c2cf7505f3ad5
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
name: Verify addons/ folder
|
|
env:
|
|
CI: false
|
|
|
|
on:
|
|
# Run on any branch to support ghstack's synthetic base/head branches.
|
|
pull_request:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
verify-addons:
|
|
runs-on: ubuntu-latest
|
|
# Our build container already has Node, Yarn, and Python installed.
|
|
container:
|
|
image: ${{ format('ghcr.io/{0}/build_ubuntu_20_04:latest', github.repository) }}
|
|
steps:
|
|
- name: Install fb-watchman
|
|
run: curl -fsSL https://github.com/facebook/watchman/releases/download/v2023.09.18.00/watchman_ubuntu20.04_v2023.09.18.00.deb -o watchman.deb && apt -y -f install ./watchman.deb
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v3
|
|
- name: Grant Access
|
|
run: git config --global --add safe.directory "$PWD"
|
|
- name: yarn install
|
|
working-directory: ./addons
|
|
run: yarn install --prefer-offline
|
|
- name: Run addons/verify-addons-folder.py
|
|
working-directory: ./addons
|
|
run: ./verify-addons-folder.py
|