chore: remove Explorer build scripts from the Monorepo (#30262)

* chore: remove Explorer build scripts from the Monorepo

* chore: remove labeler action
This commit is contained in:
Steven Luscher 2023-02-10 15:25:32 -08:00 committed by GitHub
parent 51d354defb
commit 3c01f4dd76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 7 additions and 134 deletions

View File

@ -13,17 +13,4 @@ updates:
timezone: America/Los_Angeles
#labels:
# - "automerge"
open-pull-requests-limit: 3
- package-ecosystem: npm
directory: "/explorer"
schedule:
interval: daily
time: "01:00"
timezone: America/Los_Angeles
labels:
- "automerge"
commit-message:
prefix: "chore:"
include: "scope"
open-pull-requests-limit: 3
open-pull-requests-limit: 3

2
.github/labeler.yml vendored
View File

@ -1,2 +0,0 @@
explorer:
- explorer/**/*

View File

@ -1,28 +0,0 @@
name: Explorer_build&test_on_PR
on:
pull_request:
branches:
- master
paths:
- 'explorer/**'
jobs:
check-explorer:
runs-on: ubuntu-latest
defaults:
run:
working-directory: explorer
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'npm'
cache-dependency-path: explorer/package-lock.json
- run: npm i -g npm@7
- run: npm ci
- run: npm run format
- run: npm run build
- run: npm run test

View File

@ -1,46 +0,0 @@
name: Explorer_production_build&test
on:
push:
branches: [master]
paths:
- 'explorer/**'
jobs:
Explorer_production_build_test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: explorer
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'npm'
cache-dependency-path: explorer/package-lock.json
- run: npm i -g npm@7
- run: npm ci
- run: npm run format
- run: npm run build
- run: npm run test
Explorer_production_deploy:
needs: Explorer_production_build_test
runs-on: ubuntu-latest
defaults:
run:
working-directory: explorer
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
github-token: ${{ secrets.PAT }} #Optional
vercel-args: '--prod' #for production
vercel-org-id: ${{ secrets.ORG_ID}} #Required
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
scope: ${{ secrets.TEAM_ID }}

View File

@ -1,15 +0,0 @@
name: "Pull Request Labeler"
on:
- pull_request_target # Danger; in `target` mode secrets are available to this workflow, even when the pull request comes from a community member.
jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true

View File

@ -58,10 +58,6 @@ pull_request_rules:
# only require docs checks if docs files changed
- -files~=^docs/
- status-success=build & deploy docs
- or:
# only require explorer checks if explorer files changed
- status-success=check-explorer
- -files~=^explorer/
actions:
merge:
method: squash

View File

@ -70,24 +70,6 @@ jobs:
# - sudo apt-get install libssl-dev libudev-dev
# docs pull request
# - name: "explorer"
# if: type = pull_request AND branch = master
# language: node_js
# node_js:
# - "lts/*"
# cache:
# directories:
# - ~/.npm
# before_install:
# - .travis/affects.sh explorer/ .travis || travis_terminate 0
# - cd explorer
# script:
# - npm run build
# - npm run format
- name: "docs"
if: type IN (push, pull_request) OR tag IS present
language: node_js

View File

@ -124,7 +124,6 @@ $5,000 USD in locked SOL tokens (locked for 12 months)
### Out of Scope:
The following components are out of scope for the bounty program
* Metrics: `/metrics` in the monorepo as well as https://metrics.solana.com
* Explorer: `/explorer` in the monorepo as well as https://explorer.solana.com
* Any encrypted credentials, auth tokens, etc. checked into the repo
* Bugs in dependencies. Please take them upstream!
* Attacks that require social engineering

View File

@ -304,11 +304,11 @@ pull_or_push_steps() {
# Run the full test suite by default, skipping only if modifications are local
# to some particular areas of the tree
if affects_other_than ^.buildkite ^.mergify .md$ ^docs/ ^explorer/ ^.gitbook; then
if affects_other_than ^.buildkite ^.mergify .md$ ^docs/ ^.gitbook; then
all_test_steps
fi
# explorer and docs changes run on Travis or Github actions...
# docs changes run on Travis or Github actions...
}

View File

@ -342,11 +342,11 @@ pull_or_push_steps() {
# Run the full test suite by default, skipping only if modifications are local
# to some particular areas of the tree
if affects_other_than ^.buildkite ^.mergify .md$ ^docs/ ^explorer/ ^.gitbook; then
if affects_other_than ^.buildkite ^.mergify .md$ ^docs/ ^.gitbook; then
all_test_steps
fi
# explorer and docs changes run on Travis or Github actions...
# docs changes run on Travis or Github actions...
}

View File

@ -306,11 +306,11 @@ pull_or_push_steps() {
# Run the full test suite by default, skipping only if modifications are local
# to some particular areas of the tree
if affects_other_than ^.buildkite ^.mergify .md$ ^docs/ ^explorer/ ^.gitbook; then
if affects_other_than ^.buildkite ^.mergify .md$ ^docs/ ^.gitbook; then
all_test_steps
fi
# explorer and docs changes run on Travis or Github actions...
# docs changes run on Travis or Github actions...
}