solana/.github/workflows/explorer.yml

29 lines
633 B
YAML
Raw Normal View History

2021-10-26 23:16:19 -07:00
name: Explorer_build&test_on_PR
on:
2021-10-26 23:16:19 -07:00
pull_request:
2021-10-23 01:09:07 -07:00
branches:
- master
2021-10-22 14:08:53 -07:00
paths:
2021-10-23 01:09:07 -07:00
- 'explorer/**'
jobs:
2021-10-22 07:45:07 -07:00
check-explorer:
runs-on: ubuntu-latest
2021-10-23 05:44:32 -07:00
defaults:
run:
working-directory: explorer
steps:
- uses: actions/checkout@v3
2021-10-23 01:09:07 -07:00
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