Skip to content

Commit

Permalink
explorer: Use Github Actions for CI (solana-labs#19814)
Browse files Browse the repository at this point in the history
* explorer: Use Github Actions for CI

* clean up mergify
  • Loading branch information
jstarry authored Sep 12, 2021
1 parent 3617d43 commit 3bf7c3d
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 59 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/explorer.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pull_request_rules:
conditions:
- status-success=buildkite/solana
- status-success=Travis CI - Pull Request
- status-success=check-explorer
- status-success=ci-gate
- label=automerge
- author≠@dont-squash-my-commits
Expand All @@ -31,6 +32,7 @@ pull_request_rules:
conditions:
- status-success=buildkite/solana
- status-success=Travis CI - Pull Request
- status-success=check-explorer
- status-success=ci-gate
- label=automerge
- author=@dont-squash-my-commits
Expand Down
20 changes: 0 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,6 @@ jobs:
# before_install:
# - 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
- name: "web3.js"
if: type = pull_request AND branch = master
Expand Down
23 changes: 0 additions & 23 deletions explorer/.mergify.yml

This file was deleted.

15 changes: 0 additions & 15 deletions explorer/.travis.yml

This file was deleted.

8 changes: 7 additions & 1 deletion explorer/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3bf7c3d

Please sign in to comment.