2021-04-08 14:12:03 -04:00
|
|
|
name: WebSocket server
|
|
|
|
on:
|
|
|
|
push:
|
2024-01-23 23:30:53 -05:00
|
|
|
branches:
|
2024-03-06 12:23:07 -05:00
|
|
|
- "master"
|
|
|
|
- "[0-9].[0-9]"
|
2021-04-08 14:12:03 -04:00
|
|
|
paths:
|
|
|
|
- "superset-websocket/**"
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- "superset-websocket/**"
|
2024-01-23 23:30:53 -05:00
|
|
|
types: [synchronize, opened, reopened, ready_for_review]
|
2021-04-08 14:12:03 -04:00
|
|
|
|
2024-02-01 10:08:41 -05:00
|
|
|
# cancel previous workflow jobs for PRs
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-04-08 14:12:03 -04:00
|
|
|
jobs:
|
|
|
|
app-checks:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
2024-02-01 13:56:33 -05:00
|
|
|
uses: actions/checkout@v4
|
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
|
2024-01-24 11:51:08 -05:00
|
|
|
- name: eslint
|
2021-04-08 14:12:03 -04:00
|
|
|
working-directory: ./superset-websocket
|
2024-01-28 16:42:49 -05:00
|
|
|
run: npm run eslint -- . --quiet
|
2024-01-24 11:51:08 -05:00
|
|
|
- name: typescript checks
|
|
|
|
working-directory: ./superset-websocket
|
|
|
|
run: npm run type
|
2021-04-08 14:12:03 -04:00
|
|
|
- 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
|