explorer: Use Github Actions for CI (#19814)

* explorer: Use Github Actions for CI

* clean up mergify
This commit is contained in:
Justin Starry 2021-09-12 17:20:58 -05:00 committed by GitHub
parent 3617d43e76
commit 3bf7c3d53e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 43 additions and 59 deletions

34
.github/workflows/explorer.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Explorer
on:
push:
branches: [ master ]
paths:
- "explorer/**"
pull_request:
branches: [ master ]
paths:
- "explorer/**"
jobs:
check-explorer:
runs-on: ubuntu-latest
defaults:
run:
working-directory: explorer
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
# "node" (v16) is not supported by node-sass yet
# https://github.com/sass/node-sass/pull/3090
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

@ -20,6 +20,7 @@ pull_request_rules:
conditions: conditions:
- status-success=buildkite/solana - status-success=buildkite/solana
- status-success=Travis CI - Pull Request - status-success=Travis CI - Pull Request
- status-success=check-explorer
- status-success=ci-gate - status-success=ci-gate
- label=automerge - label=automerge
- author≠@dont-squash-my-commits - author≠@dont-squash-my-commits
@ -31,6 +32,7 @@ pull_request_rules:
conditions: conditions:
- status-success=buildkite/solana - status-success=buildkite/solana
- status-success=Travis CI - Pull Request - status-success=Travis CI - Pull Request
- status-success=check-explorer
- status-success=ci-gate - status-success=ci-gate
- label=automerge - label=automerge
- author=@dont-squash-my-commits - author=@dont-squash-my-commits

View File

@ -68,26 +68,6 @@ jobs:
# before_install: # before_install:
# - sudo apt-get install libssl-dev libudev-dev # - sudo apt-get install libssl-dev libudev-dev
# explorer 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
# web3.js pull request # web3.js pull request
- name: "web3.js" - name: "web3.js"
if: type = pull_request AND branch = master if: type = pull_request AND branch = master

View File

@ -1,23 +0,0 @@
pull_request_rules:
- name: automatic merge on CI success
conditions:
- status-success=Travis CI - Pull Request
- label=automerge
actions:
merge:
method: rebase
strict: true
- name: remove automerge label on CI failure
conditions:
- status-failure=Travis CI - Pull Request
- label=automerge
actions:
label:
remove:
- automerge
- name: remove outdated reviews
conditions:
- base=master
actions:
dismiss_reviews:
changes_requested: true

View File

@ -1,15 +0,0 @@
language: node_js
# "node" (v16) is not supported by node-sass yet
# https://github.com/sass/node-sass/pull/3090
node_js:
- "lts/*"
branches:
only:
- master
script:
- npm run build
- npm run test
- npm run format

View File

@ -5,7 +5,6 @@
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "explorer",
"version": "0.1.0", "version": "0.1.0",
"dependencies": { "dependencies": {
"@blockworks-foundation/mango-client": "^3.0.17", "@blockworks-foundation/mango-client": "^3.0.17",
@ -6533,6 +6532,7 @@
"version": "4.0.3", "version": "4.0.3",
"resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.3.tgz", "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.3.tgz",
"integrity": "sha512-yEYTwGndELGvfXsImMBLop58eaGW+YdONi1fNjTINSY98tmMmFijBG6WXgdkfuLNt4imzQNtIE+eBp1PVpMCSw==", "integrity": "sha512-yEYTwGndELGvfXsImMBLop58eaGW+YdONi1fNjTINSY98tmMmFijBG6WXgdkfuLNt4imzQNtIE+eBp1PVpMCSw==",
"hasInstallScript": true,
"optional": true, "optional": true,
"dependencies": { "dependencies": {
"node-gyp-build": "^4.2.0" "node-gyp-build": "^4.2.0"
@ -15842,6 +15842,7 @@
"version": "3.0.1", "version": "3.0.1",
"resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.1.tgz", "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.1.tgz",
"integrity": "sha512-epq90L9jlFWCW7+pQa6JOnKn2Xgl2mtI664seYR6MHskvI9agt7AnDqmAlp9TqU4/caMYbA08Hi5DMZAl5zdkA==", "integrity": "sha512-epq90L9jlFWCW7+pQa6JOnKn2Xgl2mtI664seYR6MHskvI9agt7AnDqmAlp9TqU4/caMYbA08Hi5DMZAl5zdkA==",
"hasInstallScript": true,
"dependencies": { "dependencies": {
"node-addon-api": "^2.0.0", "node-addon-api": "^2.0.0",
"node-gyp-build": "^4.2.0" "node-gyp-build": "^4.2.0"
@ -21040,6 +21041,7 @@
"version": "4.0.2", "version": "4.0.2",
"resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.2.tgz", "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.2.tgz",
"integrity": "sha512-UDar4sKvWAksIlfX3xIaQReADn+WFnHvbVujpcbr+9Sf/69odMwy2MUsz5CKLQgX9nsIyrjuxL2imVyoNHa3fg==", "integrity": "sha512-UDar4sKvWAksIlfX3xIaQReADn+WFnHvbVujpcbr+9Sf/69odMwy2MUsz5CKLQgX9nsIyrjuxL2imVyoNHa3fg==",
"hasInstallScript": true,
"dependencies": { "dependencies": {
"elliptic": "^6.5.2", "elliptic": "^6.5.2",
"node-addon-api": "^2.0.0", "node-addon-api": "^2.0.0",
@ -22767,6 +22769,7 @@
"version": "1.1.6", "version": "1.1.6",
"resolved": "https://registry.npmjs.org/tiny-secp256k1/-/tiny-secp256k1-1.1.6.tgz", "resolved": "https://registry.npmjs.org/tiny-secp256k1/-/tiny-secp256k1-1.1.6.tgz",
"integrity": "sha512-FmqJZGduTyvsr2cF3375fqGHUovSwDi/QytexX1Se4BPuPZpTE5Ftp5fg+EFSuEf3lhZqgCRjEG3ydUQ/aNiwA==", "integrity": "sha512-FmqJZGduTyvsr2cF3375fqGHUovSwDi/QytexX1Se4BPuPZpTE5Ftp5fg+EFSuEf3lhZqgCRjEG3ydUQ/aNiwA==",
"hasInstallScript": true,
"dependencies": { "dependencies": {
"bindings": "^1.3.0", "bindings": "^1.3.0",
"bn.js": "^4.11.8", "bn.js": "^4.11.8",
@ -23299,6 +23302,7 @@
"version": "5.0.4", "version": "5.0.4",
"resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.4.tgz", "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.4.tgz",
"integrity": "sha512-MEF05cPSq3AwJ2C7B7sHAA6i53vONoZbMGX8My5auEVm6W+dJ2Jd/TZPyGJ5CH42V2XtbI5FD28HeHeqlPzZ3Q==", "integrity": "sha512-MEF05cPSq3AwJ2C7B7sHAA6i53vONoZbMGX8My5auEVm6W+dJ2Jd/TZPyGJ5CH42V2XtbI5FD28HeHeqlPzZ3Q==",
"hasInstallScript": true,
"optional": true, "optional": true,
"dependencies": { "dependencies": {
"node-gyp-build": "^4.2.0" "node-gyp-build": "^4.2.0"
@ -23610,6 +23614,7 @@
"version": "1.2.13", "version": "1.2.13",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz",
"integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==",
"hasInstallScript": true,
"optional": true, "optional": true,
"os": [ "os": [
"darwin" "darwin"
@ -24005,6 +24010,7 @@
"version": "1.2.13", "version": "1.2.13",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz",
"integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==",
"hasInstallScript": true,
"optional": true, "optional": true,
"os": [ "os": [
"darwin" "darwin"