2021-04-08 14:12:03 -04:00
|
|
|
name: WebSocket server
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- "superset-websocket/**"
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- "superset-websocket/**"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
app-checks:
|
|
|
|
if: github.event.pull_request.draft == false
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
2023-04-14 11:23:00 -04:00
|
|
|
uses: actions/checkout@v3
|
2021-04-08 14:12:03 -04:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
- name: Install dependencies
|
|
|
|
working-directory: ./superset-websocket
|
2023-01-02 12:11:55 -05:00
|
|
|
run: npm ci
|
2021-04-08 14:12:03 -04:00
|
|
|
- name: lint
|
|
|
|
working-directory: ./superset-websocket
|
|
|
|
run: npm run lint
|
|
|
|
- name: prettier
|
|
|
|
working-directory: ./superset-websocket
|
|
|
|
run: npm run prettier-check
|
|
|
|
- name: unit tests
|
|
|
|
working-directory: ./superset-websocket
|
|
|
|
run: npm run test
|
|
|
|
- name: build
|
|
|
|
working-directory: ./superset-websocket
|
|
|
|
run: npm run build
|