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:
parent
51d354defb
commit
3c01f4dd76
|
@ -13,17 +13,4 @@ updates:
|
||||||
timezone: America/Los_Angeles
|
timezone: America/Los_Angeles
|
||||||
#labels:
|
#labels:
|
||||||
# - "automerge"
|
# - "automerge"
|
||||||
open-pull-requests-limit: 3
|
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
|
|
|
@ -1,2 +0,0 @@
|
||||||
explorer:
|
|
||||||
- explorer/**/*
|
|
|
@ -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
|
|
|
@ -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 }}
|
|
|
@ -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
|
|
|
@ -58,10 +58,6 @@ pull_request_rules:
|
||||||
# only require docs checks if docs files changed
|
# only require docs checks if docs files changed
|
||||||
- -files~=^docs/
|
- -files~=^docs/
|
||||||
- status-success=build & deploy docs
|
- status-success=build & deploy docs
|
||||||
- or:
|
|
||||||
# only require explorer checks if explorer files changed
|
|
||||||
- status-success=check-explorer
|
|
||||||
- -files~=^explorer/
|
|
||||||
actions:
|
actions:
|
||||||
merge:
|
merge:
|
||||||
method: squash
|
method: squash
|
||||||
|
|
18
.travis.yml
18
.travis.yml
|
@ -70,24 +70,6 @@ jobs:
|
||||||
# - sudo apt-get install libssl-dev libudev-dev
|
# - sudo apt-get install libssl-dev libudev-dev
|
||||||
|
|
||||||
# docs pull request
|
# 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"
|
- name: "docs"
|
||||||
if: type IN (push, pull_request) OR tag IS present
|
if: type IN (push, pull_request) OR tag IS present
|
||||||
language: node_js
|
language: node_js
|
||||||
|
|
|
@ -124,7 +124,6 @@ $5,000 USD in locked SOL tokens (locked for 12 months)
|
||||||
### Out of Scope:
|
### Out of Scope:
|
||||||
The following components are out of scope for the bounty program
|
The following components are out of scope for the bounty program
|
||||||
* Metrics: `/metrics` in the monorepo as well as https://metrics.solana.com
|
* 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
|
* Any encrypted credentials, auth tokens, etc. checked into the repo
|
||||||
* Bugs in dependencies. Please take them upstream!
|
* Bugs in dependencies. Please take them upstream!
|
||||||
* Attacks that require social engineering
|
* Attacks that require social engineering
|
||||||
|
|
|
@ -304,11 +304,11 @@ pull_or_push_steps() {
|
||||||
|
|
||||||
# Run the full test suite by default, skipping only if modifications are local
|
# Run the full test suite by default, skipping only if modifications are local
|
||||||
# to some particular areas of the tree
|
# 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
|
all_test_steps
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# explorer and docs changes run on Travis or Github actions...
|
# docs changes run on Travis or Github actions...
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -342,11 +342,11 @@ pull_or_push_steps() {
|
||||||
|
|
||||||
# Run the full test suite by default, skipping only if modifications are local
|
# Run the full test suite by default, skipping only if modifications are local
|
||||||
# to some particular areas of the tree
|
# 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
|
all_test_steps
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# explorer and docs changes run on Travis or Github actions...
|
# docs changes run on Travis or Github actions...
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -306,11 +306,11 @@ pull_or_push_steps() {
|
||||||
|
|
||||||
# Run the full test suite by default, skipping only if modifications are local
|
# Run the full test suite by default, skipping only if modifications are local
|
||||||
# to some particular areas of the tree
|
# 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
|
all_test_steps
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# explorer and docs changes run on Travis or Github actions...
|
# docs changes run on Travis or Github actions...
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue